* off-topic: problem with cron Daemon
@ 1999-01-28 19:29 Jonathan L Dubois
1999-01-28 19:39 ` Paul Tomblin
1999-01-28 19:56 ` Paul B. Brown
0 siblings, 2 replies; 3+ messages in thread
From: Jonathan L Dubois @ 1999-01-28 19:29 UTC (permalink / raw)
To: axp-list
I keep getting errors mailed from the cron daemon like the following:
Date: Fri, 22 Jan 1999 15:01:00 -0500
From: Cron Daemon <root@bec.physics.udel.edu>
To: root@bec.physics.udel.edu
Subject: Cron <root@bec> root run-parts /etc/cron.hourly
/bin/bash: root: command not found
----
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
---
ls -l /bin/bash
-rwxr-xr-x 1 root root 488992 Nov 7 1997 /bin/bash
---
ls -l /usr/bin/run-parts
-rwxr-xr-x 1 root root 283 Oct 24 1997 /usr/bin/run-parts
---
ls -l /etc/cron.hourly/
total 1
-rwxr-xr-x 1 root root 50 May 28 1998 inn-cron-nntpsend
#!/bin/sh
su - news -c /usr/lib/news/bin/nntpsend
---
any ideas?
thanks,
Jonathan DuBois
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: off-topic: problem with cron Daemon
1999-01-28 19:29 off-topic: problem with cron Daemon Jonathan L Dubois
@ 1999-01-28 19:39 ` Paul Tomblin
1999-01-28 19:56 ` Paul B. Brown
1 sibling, 0 replies; 3+ messages in thread
From: Paul Tomblin @ 1999-01-28 19:39 UTC (permalink / raw)
To: axp-list
Quoting Jonathan L Dubois (dubois@bec.physics.udel.edu):
> I keep getting errors mailed from the cron daemon like the following:
>
> Date: Fri, 22 Jan 1999 15:01:00 -0500
> From: Cron Daemon <root@bec.physics.udel.edu>
> To: root@bec.physics.udel.edu
> Subject: Cron <root@bec> root run-parts /etc/cron.hourly
>
> /bin/bash: root: command not found
I'm guessing that you made the same mistake I made when I first moved to a
system with vixie-cron, and you installed the crontab. You don't install that
crontab that's sitting in /etc/crontab, it's run automatically. And it has
slightly different syntax than the sorts of crontabs you install using the
"crontab" command. The important difference is that "root" there - it tells
cron which userid to run it as. But that's only valid when the file is
sitting in /etc/crontab, not when it's installed.
Confused yet? Ok, do this:
crontab -r
Then everything should be fine.
--
Paul Tomblin, not speaking for anybody.
"But I heard him exclaim, as he climbed in the night
Merry Christmas to all, I have traffic in sight" - Phyllis Moses
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: off-topic: problem with cron Daemon
1999-01-28 19:29 off-topic: problem with cron Daemon Jonathan L Dubois
1999-01-28 19:39 ` Paul Tomblin
@ 1999-01-28 19:56 ` Paul B. Brown
1 sibling, 0 replies; 3+ messages in thread
From: Paul B. Brown @ 1999-01-28 19:56 UTC (permalink / raw)
To: axp-list
Hummm . . . the format of the cron job is wrong. What is root and then
run-parts? Are they executables that can be found by cron? If not, edit
the cron entries for the correct format.
---------------------------------------------------------------------------
Paul B. Brown pbrown@btechnet.com
President
Brown Technologies Network, Inc. http://www.btechnet.com/
Unix Systems Administration "Sailing is a state of mind . . . ."
---------------------------------------------------------------------------
On Thu, 28 Jan 1999, Jonathan L Dubois wrote:
> I keep getting errors mailed from the cron daemon like the following:
>
> Date: Fri, 22 Jan 1999 15:01:00 -0500
> From: Cron Daemon <root@bec.physics.udel.edu>
> To: root@bec.physics.udel.edu
> Subject: Cron <root@bec> root run-parts /etc/cron.hourly
>
> /bin/bash: root: command not found
>
> ----
>
> 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
>
> ---
>
> ls -l /bin/bash
> -rwxr-xr-x 1 root root 488992 Nov 7 1997 /bin/bash
>
> ---
>
> ls -l /usr/bin/run-parts
> -rwxr-xr-x 1 root root 283 Oct 24 1997 /usr/bin/run-parts
>
> ---
>
> ls -l /etc/cron.hourly/
> total 1
> -rwxr-xr-x 1 root root 50 May 28 1998 inn-cron-nntpsend
> #!/bin/sh
> su - news -c /usr/lib/news/bin/nntpsend
>
>
> ---
>
>
> any ideas?
>
> thanks,
> Jonathan DuBois
>
>
>
>
>
> --
> 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
end of thread, other threads:[~1999-01-28 19:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-28 19:29 off-topic: problem with cron Daemon Jonathan L Dubois
1999-01-28 19:39 ` Paul Tomblin
1999-01-28 19:56 ` Paul B. Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox