Problem refreshing page after exec
| From: | Eric Watson | Date: | Fri, 16 Mar 2001 03:39:07 +0000 |
| Subject: | Problem refreshing page after exec | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44201@lists.php.net to get a copy of this message | ||
Hello,
I am trying to start/stop a java program using PHP 4.04 on RH6.2. I can
successfully start the program using:
exec("/usr/bin/nohup /home/itrades/bin/startserver >/dev/null 2>&1 &")
But when I revisit the page or refresh the page the web server hangs
until I kill the java program.
Can someone tell me why or provide a solution for controlling
applications via PHP.
Thanks