View Single Post
Old 08-18-2004, 04:58 PM   #5 (permalink)
GoogleMeister
Upright
 
how about: "ps -ef | grep <processID or processname>" imbedded into the code. If no lines returned, then you can be pretty sure that it ain't runnin'. I have run into situations where I needed to know not if a process was running, but rather how many instances were running. For that I shell scripted "ps -ef | grep <processID or processname> | wc -l".

Maybe a bit off track, but I hope it helps.
GoogleMeister is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43