On 10/11, Aaron Schrab rearranged the electrons to read: > Or you could just make a minor modification to the grep pattern: > > ps -U $LOGNAME | grep 'r[e]almutt' > /dev/null > > That way grep won't be able to match itself. You could also just do a: ps -U $LOGONAME | grep mutt | grep -v grep > /dev/null "grep -v" tells grep to ignore whatever pattern you specify there. I haven't tested this on many versions of grep, but I know it works under AIX, HP-UX and FreeBSD. YMMV. - Jamie
- multiple mutts the/eXtreme
- Re: multiple mutts Mikko H�nninen
- Re: multiple mutts the/eXtreme
- Re: multiple mutts Conor Daly
- Re: multiple mutts the/eXtreme
- Re: multiple mutts Conor Daly
- Re: multiple mutts Brian Salter-Duke
- Re: multiple mutts Bruce J.A. Nourish
- Re: multiple mutts Brian Salter-Duke
- Re: multiple mutts Aaron Schrab
- Re: multiple mutts Jamie Novak
- Re: multiple mutts Brian Salter-Duke
- Re: multiple mutts Peter Palfrader
- Re: multiple mutts Conor Daly
- OT: grep Rob Reid
- Re: OT: grep Bob Bell
- Re: OT: grep Dave Pearson
- Re: multiple mutts Bob Bell
- Re: multiple mutts Conor Daly
- Re: multiple mutts Suresh Ramasubramanian
