Another bug: You have the makings of a fine fork bomb. If I calculate right, you'll get 20 instances of /bin/ls from that. Call the child program with exec or else exit after system.
Don't forget to zombie-proof it with wait or $SIG{CHLD), either.
After Compline,
Zaxo
In reply to Re: Re: Launching multiple processes
by Zaxo
in thread Launching multiple processes
by JeffR100
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |