Re: exec timing out, want to leave process running in bg

From: Date: Wed, 07 Mar 2001 05:37:15 +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-42857@lists.php.net to get a copy of this message
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 &"); well that simply puts the stdout and stderr in the same file /dev/null, and puts it into the background. --- pkshifted@slackin.com wrote: > > I'm trying to develop a front-end using php for > mpg123 so that various members of my household don't > need to access a shell to start/play music. I'm > using something similiar to exec('$null'), w/ $null > being equal to "mpg123 -y -Z --all >/dev/null/ &". > The problem I'm having, is about 5 minutes after it > starts, it dies, with no core dump or anything, the > process just stops. I'm sure this is done so that a > process won't run forever in the background > (bonus/bug), but what if that's what I want? Is > there any work around? > > This is using php4.0.4pl1 and FreeBSD 4.0 release > with apache 1.3.12. Thanks in advance. > > PKnull > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-general-unsubscribe@lists.php.net > For additional commands, e-mail: > php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== To find out more about me : http://www.geocities.com/mimodit My bookmarks are available @ http://mukul.free.fr __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/

« previous php.general (#42857) next »