Hi all,
I need to write a script that will check what processes are currently running against a flat file containing a list of processes that should be running. For any process that is not running, I need to send an email.
The file list will be very basic:
proc1
proc2
proc3
proc4
What is the best way to do this? I thought about putting both sets of procs into an array and comparing them, but I quickly saw that was very, very illogical. Any hints as to how this could be done?
I'll write it, so I'm not asking for that, I just need to be pointed in the right direction.