Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!stc!root44!krh From: krh@root.co.uk (Kevin Hickman) Newsgroups: comp.unix.wizards Subject: Re: problems with setuid (?) Message-ID: <706@root44.co.uk> Date: 16 Feb 89 13:59:37 GMT References: <18213@adm.BRL.MIL> Reply-To: krh@root44.UUCP (Kevin Hickman) Organization: UniSoft Ltd, London, England Lines: 25 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 should not be using these particular options as how can you be sure that the login name will start in column 1 and continue for 5 columns? should read: kill -9 `ps -ax | fgrep xnshelper | fgrep -v fgrep | cut -f3 -d" "` As for why you are unable to kill your process, I don't know. *B)>-< Kevin Hickman. -- Kevin Hickman UniSoft Limited, Saunderson House, Hayne Street, London EC1A 9HH krh@root.co.uk ...!mcvax!ukc!root44!krh +44-1-606-7799 FAX: +44-1-726-2750