checking to see if a program is running

Recommended Posts

im making a script for my lan and i want to be able to use php to start/stop different programs vnc,vlc etc. I know how to get them to start, and i can make a bat and run that to stop them but i want to check if they are running so i dont make double instances etc, and ideas how i could do this and use the information in my page

Share this post

Link to post

Share on other sites

[!--quoteo(post=365781:date=Apr 18 2006, 02:31 AM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Apr 18 2006, 02:31 AM) [snapback]365781[/snapback][/div][div class=\'quotemain\'][!--quotec--]I am afraid you can't, these functions are for programs being executed by the server if I am not wrong... So, you can't simply use it in Windows, for example;[/quote]

I was asuming the topic starter was talking about a server he was running on his PC. Obviously PHP is serverside and can't run/detect programs clientside. If the server is running localy then you can do this, even in windows.