Re: [PHP] Daemon starting

2002-04-22 Thread Danny Shepherd

Not played with them myself but you might want to take a look at the
system() and shell_exec() functions.

HTH

Danny.

- Original Message -
From: "Gilles Nedostoupof" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 12:28 PM
Subject: [PHP] Daemon starting


> Hi all,
>
> I'm looking for a simple method to start a linux daemon from a php
script...
> I've already tried to use sudo by giving rights to apache user to execute
> some scripts from /etc/rc.d/init.d ; I do a exec ("sudo
> /etc/rc.d/init.d/daemon start");
> Sometimes the daemon startup, sometimes no... I need to re-run the script
2
> or 3 times to start the daemon correctly.
> (Same problem with stopping the daemon...)
>
> Anybody have an idea?
>
> Gilles.
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Daemon starting

2002-04-22 Thread Gilles Nedostoupof

Hi all,

I'm looking for a simple method to start a linux daemon from a php script...
I've already tried to use sudo by giving rights to apache user to execute
some scripts from /etc/rc.d/init.d ; I do a exec ("sudo
/etc/rc.d/init.d/daemon start"); 
Sometimes the daemon startup, sometimes no... I need to re-run the script 2
or 3 times to start the daemon correctly.
(Same problem with stopping the daemon...)

Anybody have an idea?

Gilles.