Re: exec timing out, want to leave process running in bg
| From: | Christian Reiniger | Date: | Wed, 07 Mar 2001 08:43:04 +0000 |
| Subject: | Re: exec timing out, want to leave process running in bg | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42873@lists.php.net to get a copy of this message | ||
On Wednesday 07 March 2001 06:37, you wrote:
> Hi,
>
> Well there are many ways to run a process in the
> background, my favorite way is detaching the process
> or the program or process from within, so if it's a c
> program pretty easy, but incase you dont have the
> source, then you can use this:
>
> exec("mp3123 -y -Z --all 1>/dev/null/ 2>&1 &");
better add "nohup" to that:
exec("nohup mp3123 -y -Z --all 1>/dev/null/ 2>&1 &");
> well that simply puts the stdout and stderr in the
> same file /dev/null, and puts it into the background.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers that men do not think.
- Adolf Hitler