Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $pid = fork(); if ($pid == 0) { #this is the child exec("$command_you_requested_me_to_start") or die "Couldn't start +!\n"; } elseif (!defined($pid)){ #some sort of error occured...say so and die print "ERROR!\n"; exit; }
my $attempt = kill('INT', $pid_of_child_process);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Controlling Child Processes
by tcf22 (Priest) on Oct 23, 2003 at 18:14 UTC | |
|
Re: Controlling Child Processes
by Anonymous Monk on Oct 23, 2003 at 17:28 UTC | |
|
Re: Controlling Child Processes
by zentara (Cardinal) on Oct 24, 2003 at 14:18 UTC |