Good morning
I am writing a script to check that various applications are running. One application needs three component processes to be running can I use grep to check that all three are running and use the exit status to indicate success or failure?
Using grep -e proc1 | proc2 | proc3 will only show if at least one process is running.
Any ideas?
Thanks
Alan
I am writing a script to check that various applications are running. One application needs three component processes to be running can I use grep to check that all three are running and use the exit status to indicate success or failure?
Using grep -e proc1 | proc2 | proc3 will only show if at least one process is running.
Any ideas?
Thanks
Alan