note 90325 rejected from function.system by danbrown

From: Date: Thu, 16 Apr 2009 13:42:22 +0000
Subject: note 90325 rejected from function.system by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153390@lists.php.net to get a copy of this message
Note Submitter: sjlu at jmicron dot com ---- I use system to execute my shell script. But, it is strange that when the shell execute command use "&" as a daemon at background, the PHP will never return again and produce a zombie process [sh]. Here is mycode <html> <head> <title>PHP Test</title>^M </head> <body> <?php system("/etc/init.d/amule restart"); ?> </body> </html> The content of script ... su $USER -c "HOME=/share/amule/;export HOME;amuleweb -q &" ... any suggestion?

« previous php.notes (#153390) next »