* Re: error with crontab...
@ 1998-04-07 14:24 Dave Tucker
0 siblings, 0 replies; 3+ messages in thread
From: Dave Tucker @ 1998-04-07 14:24 UTC (permalink / raw)
To: axp-list
All I did is add a file to /etc/cron.hourly and I get the same message
every time it runs.
______________________________ Reply Separator _________________________________
Subject: error with crontab...
Author: <axp-list@redhat.com > at INTERNET
Date: 4/7/98 2:58 AM
Hello,
I have a prob. with my system crontab. I'm running Redhat 5.0 Alpha on a
UDB. I went and added a line to the system crontab the other day, and now
I am getting errors. I pulled the line out, and I still get errors. I
added it with the command crontab -e (as root). This is what my crontab
looks like:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 1 * * * root run-parts /etc/cron.daily
02 2 * * 0 root run-parts /etc/cron.weekly
02 3 1 * * root run-parts /etc/cron.monthly
This is the standard one that was installed by Redhat. I have made no
modifications to any of the above directories either. This is the line I
added:
1,11,21,31,41,51 * * * * /usr/local/sbin/keepalive >/dev/null
I don't quite get it.... here is the error email I get:
Subject: Cron <root@vanhalen> root run-parts /etc/cron.hourly
/bin/bash: root: command not found
But I get the same thing for daily, weekly, and my keepalive when I had it
in there. I think I would get the same for monthly, but it hasn't been that
long.
Thanks for any help.
-Jeremy
---------------------------------------------------------------------\
Jeremy Sieminski Space for Rent.... \
jps@nodezero.com /
---------------------------------------------------------------------/
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 3+ messages in thread* error with crontab...
@ 1998-04-07 2:58 Jeremy Sieminski
1998-04-07 4:11 ` Jon E. Mitchiner
0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Sieminski @ 1998-04-07 2:58 UTC (permalink / raw)
To: axp-list
Hello,
I have a prob. with my system crontab. I'm running Redhat 5.0 Alpha on a
UDB. I went and added a line to the system crontab the other day, and now
I am getting errors. I pulled the line out, and I still get errors. I
added it with the command crontab -e (as root). This is what my crontab
looks like:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 1 * * * root run-parts /etc/cron.daily
02 2 * * 0 root run-parts /etc/cron.weekly
02 3 1 * * root run-parts /etc/cron.monthly
This is the standard one that was installed by Redhat. I have made no
modifications to any of the above directories either. This is the line I
added:
1,11,21,31,41,51 * * * * /usr/local/sbin/keepalive >/dev/null
I don't quite get it.... here is the error email I get:
Subject: Cron <root@vanhalen> root run-parts /etc/cron.hourly
/bin/bash: root: command not found
But I get the same thing for daily, weekly, and my keepalive when I had it
in there. I think I would get the same for monthly, but it hasn't been that
long.
Thanks for any help.
-Jeremy
---------------------------------------------------------------------\
Jeremy Sieminski Space for Rent.... \
jps@nodezero.com /
---------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: error with crontab...
1998-04-07 2:58 Jeremy Sieminski
@ 1998-04-07 4:11 ` Jon E. Mitchiner
0 siblings, 0 replies; 3+ messages in thread
From: Jon E. Mitchiner @ 1998-04-07 4:11 UTC (permalink / raw)
To: axp-list
> -----Original Message-----
> From: Jeremy Sieminski [mailto:devil@hell.roc.servtech.com]
> Sent: Monday, April 06, 1998 10:58 PM
> To: axp-list@redhat.com
> Subject: error with crontab...
>
> # run-parts
> 01 * * * * root run-parts /etc/cron.hourly
> 02 1 * * * root run-parts /etc/cron.daily
> 02 2 * * 0 root run-parts /etc/cron.weekly
> 02 3 1 * * root run-parts /etc/cron.monthly
> 1,11,21,31,41,51 * * * * /usr/local/sbin/keepalive >/dev/null
Notice the difference between the two? :) You forgot to add the user for
cron to execute under. So it should be:
1,11,21,31,41,51 * * * * root /usr/local/sbin/keepalive >/dev/null
That should probably work.
Right now it's trying to run as user /usr/local/sbin/keepalive.
Jon
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-04-07 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-04-07 14:24 error with crontab Dave Tucker
-- strict thread matches above, loose matches on Subject: below --
1998-04-07 2:58 Jeremy Sieminski
1998-04-07 4:11 ` Jon E. Mitchiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox