note 110889 added to function.exec

From: Date: Wed, 19 Dec 2012 20:01:47 +0000
Subject: note 110889 added to function.exec
Groups: php.notes 
Request: Send a blank email to php-notes+get-192606@lists.php.net to get a copy of this message
exec($cmd . " &") did not seem to work for backgrounding a task in linux, but using the pclose(popen($cmd . ' &', 'r')); trick from the Windows advice did work just fine. This is, of course, without catching and throwing away or catching and saving any output (stdout or stderr) from $cmd. ---- Server IP: 64.71.164.2 Probable Submitter: 131.167.254.100 ---- Manual Page -- http://php.net/manual/en/function.exec.php Edit -- https://master.php.net/note/edit/110889 Del: integrated -- https://master.php.net/note/delete/110889/integrated Del: useless -- https://master.php.net/note/delete/110889/useless Del: bad code -- https://master.php.net/note/delete/110889/bad+code Del: spam -- https://master.php.net/note/delete/110889/spam Del: non-english -- https://master.php.net/note/delete/110889/non-english Del: in docs -- https://master.php.net/note/delete/110889/in+docs Del: other reasons-- https://master.php.net/note/delete/110889 Reject -- https://master.php.net/note/reject/110889 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192606) next »