Some help with a php script..

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi folks,

Im trying to write a simple php script. Basically all i want it to do
is detect if a process is running or not then just set a variable to
Running or Stopped.

Its running on linux, ive already written one for for some processes
that leave pid files but this daemon doesnt leave a pid file.

Can anyone help please. Thanks

Re: Some help with a php script.. wrote:
Quoted text here. Click to load it

exec('pidof processname') will return the id of a running process, if
there's more then one of the process it returns a list of ids separated
by spaces.


Site Timeline