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";
In reply to Re: How to use multiple processors with fork in unix?
by Skeeve
in thread How to use multiple processors with fork in unix?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |