in reply to Re: Launching multiple processes
in thread Launching multiple processes

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