note 103713 added to function.exec
| From: | Bean at hotmail dot com | Date: | Fri, 29 Apr 2011 12:33:22 +0000 |
| Subject: | note 103713 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179263@lists.php.net to get a copy of this message | ||
I've been trying to use the exec to run the php-cli so it can run a script with some arguments
in the background. Seems that it does not accept both pipe commands and arguments. I'm not a
linux guru so there could be other means, but for now it seems I can only choose to send it
arguments, or run it in the background.
exec('php-cli -q /filetorun.php arg1 >/dev/null/ 2>&1');
----
Server IP: 69.147.83.197
Probable Submitter: 142.177.56.91
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/103713
Del: integrated -- https://master.php.net/note/delete/103713/integrated
Del: useless -- https://master.php.net/note/delete/103713/useless
Del: bad code -- https://master.php.net/note/delete/103713/bad+code
Del: spam -- https://master.php.net/note/delete/103713/spam
Del: non-english -- https://master.php.net/note/delete/103713/non-english
Del: in docs -- https://master.php.net/note/delete/103713/in+docs
Del: other reasons-- https://master.php.net/note/delete/103713
Reject -- https://master.php.net/note/reject/103713
Search -- https://master.php.net/manage/user-notes.php