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.

Here a perl script which demonstrates this behavior:

#!/opt/local/bin/perl -w
use strict;
print "About to execute system\n";
system ("sleep 10 &");
print "Done with system\n";
print "About to execute backticks\n";
`sleep 10 &`;
print "Done with backticks\n";

I really don't understand this behavior.
Can someone explain why this is happening?


Reply via email to