Reply to Re: Some help with a php script..

Your name:

Reply:


Posted by Tim Hunt on 08/11/06 13:41

benson_james@yahoo.com wrote:
> 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

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.

Regards
Tim

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация