in reply to How to run a 2nd script in background?
#run script.pl as child process my $pid; my $script = '/myroot/public_html/cgi-bin/script.pl'; if ($pid = fork) { #do something } elsif (defined $pid) { close STDOUT; system $script; } else { die "Major error: $!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to run a 2nd script in background?
by cdarke (Prior) on Jan 03, 2008 at 09:34 UTC |