killing child process
| From: | gamin | Date: | Thu, 02 Jan 2003 14:56:05 +0000 |
| Subject: | killing child process | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-129944@lists.php.net to get a copy of this message | ||
Hello,
Running PHP 4.0.6 on RedHat 7.2.
I'm writing a command line script (called scirpt.php) and am using the
backtick operator to start other processes from my script.
$com_response =
./other_script.php ; or #com_response = wget ....;
I can kill scirpt.php easily but that wont kill other_script.php, there
would be no problem killing one process manually, but i could have many
scirpts starting from the main script. Killing them all would be a task. I
could prefix their name them with 'ch_' and kill all these. But thats not
the solution i'm looking for.
Is there a way to make a process a child, so that when the parent
termintaes/is terminated the child terminates also ?
thx
gamin.