From owner-freebsd-stable Sat May 27 9:30:14 2000 Delivered-To: freebsd-stable@freebsd.org Received: from relay02.chello.nl (relay02.chello.nl [212.83.68.146]) by hub.freebsd.org (Postfix) with ESMTP id 3DA8937B77B for ; Sat, 27 May 2000 09:30:08 -0700 (PDT) (envelope-from wkb@chello.nl) Received: from chello.nl ([213.46.78.184]) by relay02.chello.nl (InterMail vK.4.02.00.00 201-232-116 license 2ee4e7c625482f2f2a1950a80f6c8d58) with ESMTP id <20000527162954.XSDK13476.relay02@chello.nl>; Sat, 27 May 2000 18:29:54 +0200 Received: (from wkb@localhost) by chello.nl (8.9.3/8.9.3) id SAA08230; Sat, 27 May 2000 18:30:19 GMT (envelope-from wkb) Date: Sat, 27 May 2000 18:30:19 +0000 From: Wilko Bulte To: mwhalen@uucom.com Cc: stable@FreeBSD.ORG Subject: Re: killall question Message-ID: <20000527183019.A8203@freebie.wbnet> Reply-To: wc.bulte@chello.nl References: <200005271518.LAA14294@tangerine.uucom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200005271518.LAA14294@tangerine.uucom.com>; from mwhalen@uucom.com on Sat, May 27, 2000 at 11:18:22AM -0400 X-OS: FreeBSD 4.0-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, May 27, 2000 at 11:18:22AM -0400, mwhalen@uucom.com wrote: > I think I heard John Baldwin say: > > > >On 27-May-00 Randall Hopper wrote: > >> housley@thehousleys.net: > >> |Randall Hopper said: > >> | > >> |> I have a script I run named "newroot". I want to kill it with killall. > >> |> > >> |> > ps -ax | grep newroot > >> |> 842 1 rhh /bin/sh /home/rhh/bin/newroot 360 > >> |> > >> |You will have to do something like > >> | > >> |kill `ps -ax | grep newroot | sed -e '^[0-9]*'` > >> > >> Ok. I thought I'd at least try to use the system version, but sounds like > >> it's just not as flexible as killall's on other systems. > > IMHO, killall is a terrible script to use since it's behavior is so It is not terrible as such, it is just very incorrectly named.. > different on different machines. I've seen newbie sysadmins do bad > things with killall on my Solaris machines: Here is the start of > Solaris' manpage: It is not only newbies, people who run multiple Unix versions can be confused too. My vote is to rename killall to something that is A. unique and B. covers it's actions well. W/ -- Wilko Bulte FreeBSD, the power to serve http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message