From owner-freebsd-stable Sat May 27 5:58:31 2000 Delivered-To: freebsd-stable@freebsd.org Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id 8227737BA25 for ; Sat, 27 May 2000 05:58:28 -0700 (PDT) (envelope-from housley@thehousleys.net) Received: from thehousleys.net (localhost [127.0.0.1]) by thehousleys.net (8.9.3/8.9.3) with SMTP id IAA29766; Sat, 27 May 2000 08:58:25 -0400 (EDT) (envelope-from housley@thehousleys.net) Message-Id: <200005271258.IAA29766@thehousleys.net> Date: Sat, 27 May 2000 12:58:25 -0000 To: Randall Hopper , stable@FreeBSD.ORG Subject: Re: killall question From: X-Mailer: TWIG 2.2.3 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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]*'` Jim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message