--- "Cron, Daniel" <[EMAIL PROTECTED]> wrote:
> It seems that when I use backticks to kick off a job in the
> background, my perl script waits until the background job finishes.
> But it seems that the system command actually kicks things off and
> moves on.
[snip]
> I really don't understand this behavior.
> Can someone explain why this is happening?

Beause backtics return the output from the program, of which might be
none until the end of it's execution.

Thus, you can say 
  if($x = `proggie`) { 

and $x will have any output from the program.
system() just runs the program.
If you want it to wait (and you certainly might), you have to do a wait
or waitpid command. 

BTW ==========================
To quietly reap zombies, try:
   $SIG{CHLD} = sub { wait }; # wait now fires on child death 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to