Skip site navigation (1)Skip section navigation (2)
Date:      25 Jul 2003 16:54:45 -0400
From:      Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Problem with periodically done scripts
Message-ID:  <44oezigwdm.fsf@be-well.ilk.org>
In-Reply-To: <023301c352e0$b17fcac0$3501a8c0@pro.sk>
References:  <020d01c352dc$0ef7a7e0$3501a8c0@pro.sk> <028101c352dd$d87ee230$2401010a@zone3000.net> <023301c352e0$b17fcac0$3501a8c0@pro.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
"Peter Rosa" <prosa@pro.sk> writes:

> > > From: "Peter Rosa" <prosa@pro.sk>
> > > To: <dan@slightlystrange.org>
> > > Cc: "freebsd-questions" <freebsd-questions@freebsd.org>
> > > 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?]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44oezigwdm.fsf>