Super Monkey has asked for the wisdom of the Perl Monks concerning the following question:
my $child = fork(); if ($child) { sleep $sleep; kill 9, $child; # parse $fileName here } else { my $flag = `/usr/sbin/tcpdump -i eth0 -w $fileName`; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Killing a Forked Subprocess
by merlyn (Sage) on Mar 21, 2002 at 18:10 UTC | |
|
Re: Killing a Forked Subprocess
by dws (Chancellor) on Mar 21, 2002 at 18:13 UTC | |
|
Re: Killing a Forked Subprocess
by lestrrat (Deacon) on Mar 21, 2002 at 18:13 UTC | |
by IlyaM (Parson) on Mar 21, 2002 at 20:20 UTC | |
by lestrrat (Deacon) on Mar 21, 2002 at 20:32 UTC | |
by IlyaM (Parson) on Mar 21, 2002 at 20:44 UTC | |
by Super Monkey (Beadle) on Mar 21, 2002 at 19:32 UTC | |
|
Re: Killing a Forked Subprocess
by Zaxo (Archbishop) on Mar 21, 2002 at 19:17 UTC |