in reply to How to use multiple processors with fork in unix?
and it works fine. So your problem might be one or both of:if (fork()==0) { print "child1\n"; system ("ls -al $ARGV[0]"); exit; } if (fork()==0) { print "child2\n"; system ("df -k $ARGV[1]"); exit; } wait; wait; print "Done!\n";
|
|---|