On 20 Aug 2003 17:31:09 -0500
Tom Penney <blots at visi.com> wrote:

> 
> I kind of like your hack. What if you don't know the name of the
> command but know it contains ssh.
> ps -ef |grep -v grep|grep ssh   - Works
> ps -C ssh   - Does Not
> 

why not just the old Unix favorite (well, at least mine):

ps -ef|grep ssh

Why bother with the grep -v and such when all you're doing is checking for a running process visually?  If you're using a script and don't want to see the pid of the grep then it's fine, IMO.

Less typing at times is better.

-- 
Shawn

  The difficult we do today; the impossible take a little longer.

  Ne Obliviscaris --  "Forget Not"

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list