Jump to content

Command to determine if a process is killed


Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...