Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: comp.unix.shell Subject: Grepping for a process (was Re: Killing process w/o number (csh)) Message-ID: Date: 26 Apr 91 14:00:29 GMT References: <3209@mtecv2.mty.itesm.mx> <+-A_7A#@warwick.ac.uk> <1991Apr24.214750.24522@athena.mit.edu> Sender: news@warwick.ac.uk (Network news) Organization: Computing Services, Warwick University, UK Lines: 27 Nntp-Posting-Host: shark In article <1991Apr24.214750.24522@athena.mit.edu> jik@athena.mit.edu (Jonathan I. Kamens) writes: >Because the 'c' option to grep isn't universally supported. On an A/UX (SysV >based) system: > >% ps axc >usage: ps [ -edalf ] [ -c corefile ] [ -s swapdev ] [ -n namelist ] [ -t tlist ] > [ -p plist ] [ -u ulist ] [ -g glist ] But note that `x' isn't support either, so if you can do ps ax | grep whatever | grep -v grep you can also do ps axc | grep whatever I assume there's a similar option for System V ? One case has been pointed out to me that fails: if the `whatever' is a shell script, the `ps c' will report it as `sh'. Rob -- UUCP: ...!mcsun!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick INET: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England