Re: error from root
On Tue, 3 Jun 2003, Colin Watson wrote:
> On Tue, Jun 03, 2003 at 09:46:18AM +0200, Ernst-Magne Vindal wrote:
> > I keep getting this error:
> > Subject: Cron <root@web> root test -e /usr/sbin/anacron || run-parts
> > --report /etc/cron.daily
> > /bin/sh: line 1: root: command not found
> > and when I do:
> > web:~# dpkg -l anacron
> > Desired=Unknown/Install/Remove/Purge/Hold
> > | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> > uppercase=bad)
> > ||/ Name Version Description
> > +++-==============-==============-============================================
> > pn anacron <none> (no description available)
> > I get this.
> > So if I'm not totally off here, someting is running anacron,
> > wich isn't installed?
> You're totally off. :) The crontab entry quoted above is malformed; it
> looks to me like you or something else has taken a line from
> /etc/crontab and copied it straight into another crontab file. However,
> /etc/crontab has a special syntax: it has an extra field for the
> username, that is "root" above. When you use lines like that in other
> crontab files you need to remove the username field.
> Colin Watson [firstname.lastname@example.org]
> To UNSUBSCRIBE, email to email@example.com
> with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
Thanks Collin, and the rest of you replying.
In my crontab I had added some jobs, and I't looked to me that one of the
them was mailformed.
I have edited the file and hope that helps, followed what's in man and
found some examples on the net.