Discussion Locked

checking processes

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to write a script that will return a value of yes or no(1 or 0) if a specified process is running on a networked workstation. This is so I can be sure my backup agent is running. Does anyone know of a command that will check for process x on machine y and return a value to tell if it is running or not.

4 replies

by marco milo

I have the same problem, and i've used the follwing command:

rsh MACHINE_NAME ps -ef | grep PROCESS_NAME | grep -v grep

this should work...

This discussion is closed to new replies.