At 15:58:26, on 12.30.03: Cracks in my tinfoil beanie allowed Bakken, Luke to seep these bits into my brain:, > > Instead of the useless 'grep -v grep', do this: > > % ps -ef | egrep '[/]usr/lib/sendmail' | awk '{print $2}'
Ah, yes, much cleaner. Old habits die hard. :-) > > But, when I put this into a test script, > > Might I suggest finding the 'pid' file for sendmail and reading that > instead? It should be under /var/run or some such directory... Not as reliable as checking the process table. The process could have been killed off, but the pid file is still there. Thanks for the better regexp, deb -- o _ _ _ _o /\_ _ \\o (_)\__/o (_) _< \_ _>(_) (_)/<_ \_| \ _|/' \/ (_)>(_) (_) (_) (_) (_)' _\o_ http://zapatopi.net/afdb.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>