There are various modules on CPAN for this. One of them is Proc::Background:
use Proc::Background; my @params = ... my @procs; for my $p (@params) { my $cmd = "some-command $p > /tmp/some-file.$p"; push @procs, Proc::Background->new($cmd); } $_->wait for @procs; # ... continue work
In reply to Re: sending multiple commands
by Anonyrnous Monk
in thread sending multiple commands
by didess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |