Problem with periodically done scripts

Lowell Gilbert freebsd-questions-local at be-well.no-ip.com
Fri Jul 25 13:54:48 PDT 2003


"Peter Rosa" <prosa at pro.sk> writes:

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


More information about the freebsd-questions mailing list