in reply to fork question
#!/usr/bin/perl # Proc::Background is much more readable than fork and exec. # Plus, it works on Windows too -- fork tends not to work well there. use Proc::Background; my $proc; my @commands=($cmd1,$cmd2); foreach my $foo (@commands) { $proc = Proc::Background->new($foo); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: fork question
by jonnyfolk (Vicar) on Aug 08, 2011 at 15:23 UTC |