NickBtheITguy Posted November 6, 2008 Share Posted November 6, 2008 I am putting together a script that will monitor a few processes that need to be running. If they aren't running the script starts the process. Is there a way to monitor a process though and get a message if it has been killed by the end user? Right now as it stands, the script creates a log of when the script starts and when each process is started. So if there is more than a few minute difference between the start of the script and the start of the processes then the end user possibly tried to kill the process. If there is only a minute or so then the machine was probably rebooted. I would rather be able to monitor for the process being terminated though. Any ideas? Link to comment Share on other sites More sharing options...
youknowwho4eva Posted November 6, 2008 Share Posted November 6, 2008 processexists? Giggity Link to comment Share on other sites More sharing options...
NickBtheITguy Posted November 6, 2008 Author Share Posted November 6, 2008 processexists?That's what I use now but that doesn't tell me if the end user actually terminated the process. It just checks if it exists. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted November 6, 2008 Share Posted November 6, 2008 ah so you want to see if it terminated itself or if the user did it themselves. Not sure but isn't that stored in the system log? Giggity Link to comment Share on other sites More sharing options...
NickBtheITguy Posted November 6, 2008 Author Share Posted November 6, 2008 ah so you want to see if it terminated itself or if the user did it themselves. Not sure but isn't that stored in the system log?I'm not sure if that is stored in the system log. I might have to look into that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now