t0ddie Posted February 21, 2010 Share Posted February 21, 2010 I have notepad.exe running I have a script named notepad.exe also running. If the script is stopped i want to be able to restart it with a third script. monitor script if not processexists($pid) then run("notepad.exe") endif I can get the PID from all processes named notepad.exe but the problem is this. how do I know which PID is notepad and which is my script? I need this without running one at a time and getting the PID separately because this monitor script is assuming that all the files are already running when you run the monitor for the first time. Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now