[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: crontab error
On Sat, 24 Jul 1999, Ariel Biener wrote:
Ok.
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
this is /etc/crontab
This is NOT where you put crontab entries, nor is this the format for
crontab (albeit close).
So. If you want, you can either use /var/spool/cron/crontabs/root (by
doing `crontab -e' as root),
there add:
the format is
* * * * * command
(replace the *'s with the appropriate values).
You can also use the /etc/cron.{daily,hourly,weekly,monthly}/ directories
like this:
if you wanted to run it `ntpdate' once a day for example, add this to
/etc/cron.daily directory:
add a ntpdate file to that directory that has in it:
#!/bin/sh
/usr/sbin/ntpdate -s whatever
and make that file executable.
READ THE CRON MAN PAGE.
--Ariel
> On Sat, 24 Jul 1999, Jeff Rose wrote:
>
>
> That is not the problem:
>
> His crontab is trying to run:
>
> root /usr/bin/mrtg /mrtg/main-lizard.cfg
>
>
> and /bin/bash: is sending a response:
>
> /bin/bash: root: command not found
>
>
>
> Can we see the crontab file ?
>
> --Ariel
>
> > Mike wrote:
> > >
> > > Hi all.
> > > I'm keep getting this error mesage in my root mail :
> > >
> > > Subject: Cron <root@linux> root /usr/bin/mrtg /mrtg/main-lizard.cfg
> > >
> > > /bin/bash: root: command not found
> > >
> > > my cron table looks like this :
> > >
> > > SHELL=/bin/bash
> > > PATH=/sbin:/bin:/usr/sbin:/usr/bin
> > > MAILTO=root
> >
> > You probably already have an accurate response, however:
> >
> > Do you have a symbolic link from /bin/sh to /bin/bash?
> >
> > Is there even a /bin/bash existing in your /bin directory?
> >
> > Otherwise, I'll let the *NIX veterans help you here!
> >
> > Cheers, Jeff
> > --
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> > Jeff Rose Everyone's Linux User Group (ELUG)
> > http://www.elug.orgmailto:uadmin@elug.org
> > [Gtk]ICQ: 10400141 [G]AIM: JeffRoseFL
> >
> > =================================================================
> > To unsubscribe, send mail to linux-il-request@linux.org.il with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail linux-il-request@linux.org.il
> >
>
> --
> Ariel Biener
> e-mail: ariel@post.tau.ac.il Work phone: 03-640608
> fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC
>
>
--
Ariel Biener
e-mail: ariel@post.tau.ac.il Work phone: 03-640608
fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il