note 90325 added to function.system

From: Date: Thu, 16 Apr 2009 13:39:24 +0000
Subject: note 90325 added to function.system
Groups: php.notes 
Request: Send a blank email to php-notes+get-153389@lists.php.net to get a copy of this message
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? ---- Server IP: 140.113.54.119 Probable Submitter: 220.130.51.235 ---- Manual Page -- http://www.php.net/manual/en/function.system.php Edit -- https://master.php.net/note/edit/90325 Del: integrated -- https://master.php.net/note/delete/90325/integrated Del: useless -- https://master.php.net/note/delete/90325/useless Del: bad code -- https://master.php.net/note/delete/90325/bad+code Del: spam -- https://master.php.net/note/delete/90325/spam Del: non-english -- https://master.php.net/note/delete/90325/non-english Del: in docs -- https://master.php.net/note/delete/90325/in+docs Del: other reasons-- https://master.php.net/note/delete/90325 Reject -- https://master.php.net/note/reject/90325 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153389) next »