Jump to content

Recommended Posts

Posted

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?

Posted

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.

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...