From owner-freebsd-questions@FreeBSD.ORG Fri Jul 25 13:54:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 876D637B401 for ; Fri, 25 Jul 2003 13:54:48 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA8F643FB1 for ; Fri, 25 Jul 2003 13:54:47 -0700 (PDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[66.30.200.37]) by comcast.net (rwcrmhc11) with ESMTP id <2003072520544701300opogue>; Fri, 25 Jul 2003 20:54:47 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [66.30.200.37] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h6PKskM1007457 for ; Fri, 25 Jul 2003 16:54:46 -0400 (EDT) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h6PKsjbC007454; Fri, 25 Jul 2003 16:54:45 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: freebsd-questions@freebsd.org References: <020d01c352dc$0ef7a7e0$3501a8c0@pro.sk> <028101c352dd$d87ee230$2401010a@zone3000.net> <023301c352e0$b17fcac0$3501a8c0@pro.sk> From: Lowell Gilbert Date: 25 Jul 2003 16:54:45 -0400 In-Reply-To: <023301c352e0$b17fcac0$3501a8c0@pro.sk> Message-ID: <44oezigwdm.fsf@be-well.ilk.org> Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Problem with periodically done scripts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 20:54:48 -0000 "Peter Rosa" writes: > > > From: "Peter Rosa" > > > To: > > > Cc: "freebsd-questions" > > > Sent: Friday, July 25, 2003 6:59 PM > > > Subject: Re: Problem with periodically done scripts > > > > > > > > > > Here is complete listing. Do you have any idea ? > > > > > > > > + echo Checking for uids of 0: > > > > Checking for uids of 0: > > > > + awk -F: $3==0 {print $1,$3} /etc/master.passwd > > > > + tee /dev/stderr > > > > root 0 > > > > toor 0 > > > > + sed -e /^root 0$/d -e /^toor 0$/d > > > > + wc -l > > > > + n= > > > > + [ -gt 0 -a -lt 1 ] 'n' isn't getting set at all. Try the awk script by hand, and see what happens. [You do *have* an /etc/master.passwd, right?]