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.
--- [EMAIL PROTECTED] 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
=====
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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]