note 22775 added to function.exec
| From: | nicos@php.net | Date: | Sat, 29 Jun 2002 15:32:18 +0000 |
| Subject: | note 22775 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32409@lists.php.net to get a copy of this message | ||
For those who've got a problem with running a background process with exec(), it looks that
some process doesn't support it at all, some will need to be redirected to /dev/null. If you
can't load your program even with ">/dev/null" you are supposed to code a little
sh script to run your program in background
This is 'file.sh'
#/bin/sh
command_here &
and you :
exec("file.sh");
Note: this will not work with the program that require an output on your screen like
'top'.
Have fun - Nicos
--
http://www.php.net/manual/en/function.exec.php
http://master.php.net/manage/user-notes.php?action=edit+22775
http://master.php.net/manage/user-notes.php?action=delete+22775
http://master.php.net/manage/user-notes.php?action=reject+22775