Using exec()
| From: | Andre Labonte | Date: | Wed, 28 Jun 2000 15:36:44 +0000 |
| Subject: | Using exec() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22631@lists.php.net to get a copy of this message | ||
I am trying to run a system command, and capture the output line by line
using
<?PHP
exec(command,$array);
?>
It works awesome, and does what I want to, but PHP seems to leave the
command's process unfinished. In a zombie state.
It is still present in the process table of my web server.
Refreshing my browser creates another unfinished process...
Does anyone know of an alternate function, or a way of ending the
process once the command output has been received?
thanx