Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!columbia!cs!dupuy From: dupuy@cs.columbia.edu (Alexander Dupuy) Newsgroups: comp.unix.wizards Subject: Re: problems with setuid (?) Message-ID: Date: 24 Feb 89 22:17:09 GMT References: <18213@adm.BRL.MIL> <706@root44.co.uk> Sender: dupuy@cs.columbia.edu Reply-To: dupuy@cs.columbia.edu Organization: Columbia University Computer Science Department Lines: 18 In-reply-to: krh@root.co.uk's message of 16 Feb 89 13:59:37 GMT In article <18213@adm.BRL.MIL> you write: >I am having a problem (explained below) with killing processes using a >c-shell script. > >kill -9 `ps -ax | fgrep xnsstart | fgrep -v fgrep | cut -c1-5` >kill -9 `ps -ax | fgrep xnshelper | fgrep -v fgrep | cut -c1-5` You can also eliminate the extra fgrep with the -c option to ps: kill -9 `ps -acx | fgrep xnsstart | cut ...` @alex -- -- inet: dupuy@cs.columbia.edu uucp: ...!rutgers!cs.columbia.edu!dupuy