> [Michael Mueller]
> Anybody think of another way to accomplish this?

killall -0 procname and check $?
pidof procname and check $? or check for output

jmm@xanex:/home/jmm> for i in bash xxx; do
> killall -q $i && echo There is a $i process running
> done
There is a bash process running
jmm@xanex:/home/jmm>

-- 
James Manning <http://www.sublogic.com/james/>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4
_______________________________________________
TriLUG mailing list
    http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ:
    http://www.trilug.org/~lovelace/faq/TriLUG-faq.html

Reply via email to