Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 1999 15:44:37 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Eugene Sevinian <sevinian@aya.yerphi.am>
Cc:        questions@FreeBSD.ORG
Subject:   Re: crontab
Message-ID:  <19990519154437.Y89091@freebie.lemis.com>
In-Reply-To: <Pine.LNX.3.96.990519102635.7356A-100000@aya.yerphi.am>; from Eugene Sevinian on Wed, May 19, 1999 at 10:41:51AM %2B0400
References:  <Pine.LNX.3.96.990519102635.7356A-100000@aya.yerphi.am>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, 19 May 1999 at 10:41:51 +0400, Eugene Sevinian wrote:
> Hello,
> Can someone tell me why  cron is sending me such messages:
>
> To: root
> Subject: Cron <root@mandela> root       /etc/periodic/other/script.pl
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <LOGNAME=root>
> X-Cron-Env: <USER=root>
>
> root: not found
>
> where script.pl is a trivial  perl script like:
> ---
> #!/usr/bin/perl
> print "hello";
> ---

Well, you don't display the line in your crontab, but I'd guess that
you've taken the /etc/crontab format and put it in your crontab.
Look:

Subject: Cron <root@mandela> root       /etc/periodic/other/script.pl

The name of the command it's trying to run here is 'root'.  And the
format in /etc/crontab is different from other crontabs: it has an
additional field with the name of the user for whom the command is to
run, in this case--wait for it--root.  Remove this field (number 6)
and it should run OK.

Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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