From owner-freebsd-questions Thu Mar 14 15:48:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 0127F37B419 for ; Thu, 14 Mar 2002 15:48:33 -0800 (PST) Received: from hades.hell.gr (patr530-a236.otenet.gr [212.205.215.236]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g2ENmQ0j003841; Fri, 15 Mar 2002 01:48:27 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g2ENmjo3005467; Fri, 15 Mar 2002 01:48:45 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g2ENmiCJ005466; Fri, 15 Mar 2002 01:48:45 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Fri, 15 Mar 2002 01:48:44 +0200 From: Giorgos Keramidas To: Karun Cc: freebsd-questions@freebsd.org Subject: Re: Process Reaper for Freebsd Message-ID: <20020314234844.GB5149@hades.hell.gr> References: <004701c1ca54$77ad8a50$3301000a@karunwin2k> <20020313115333.GF434@hades.hell.gr> <009d01c1caca$95578530$3301000a@karunwin2k> <20020313220840.GB40511@hades.hell.gr> <003101c1cb18$df923840$3301000a@karunwin2k> <20020314163453.GA607@hades.hell.gr> <008301c1cb98$68ce1b90$3301000a@karunwin2k> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <008301c1cb98$68ce1b90$3301000a@karunwin2k> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-03-15 06:39, Karun wrote: > Here the script is after being modified. > > #!/bin/sh > > ps xau | sed -e 1d |grep -v '^root' |grep -v '^vpopmail' |grep -v '^qmail' > |grep -v '^mysql' |\ > awk '{print $2,$7}' | cut -d' ' -f1 > > When i run kill 'scriptname.sh' it comes up with a message saying > > kill: reaper: no such pid Wrong type of quotes. Try backquotes in kill `scriptname.sh` :) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message