-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 10 Sep 2003 07:28:01 -0700 (PDT), Khademul Islam wrote:

> I have setup crontab, using crontab -e to send some
> e-mail in a routine basis. This is the error message I
> got ... how I can fix it?

I think I've answered a similar question recently. The answer is in
"man 5 crontab". That manual explains that the format of a crontab
edited with "crontab -e" is different from what you see in
/etc/crontab. In particular, the sixth argument (the target user) must
not be included.

> /bin/sh: line 1: root: command not found
> 
> &
> >>>>>>>>>
> 
> This is what I have in the crontab file(when I type
> crontab -e after logging in as dislam on the server)
> >>
> 
> 10 7 * * * root run-parts /etc/cron.special
> 02 6 16 * * * root run-parts /etc/cron.specialMonthly
> 02 22 * * 6 root run-parts /etc/cron.specialWeekly

Run "crontab -e" and drop the "root" from all three lines.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/X0zu0iMVcrivHFQRApYOAJ9xNRmdN7UDZY+5/p5OjxTUyAMnQACfeCpz
eJSwwRNpNntJlRizzBvPcXg=
=6xD1
-----END PGP SIGNATURE-----


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to