exec($cmd1) if fork; exec($cmd2) if fork; exec($cmd3) if fork;
Also FYI, exec doesn't cause your script to "die"; it removes your script from the operating system's process table, replacing it with the executed command. Thus your script "becomes" the executed program.
In reply to Re: Launching multiple programs from Perl script
by tobyink
in thread Launching multiple programs from Perl script
by Shawrich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |