o ayan ha... hindi na ako nag- "reply-to-make-a-new-thread" =)
Juan Miguel Cacho wrote:
>
> En Mon, Aug 20, 2001 at 04:30:13PM +0800, Raymund dos Remedios escribio:
> #_ P.S. I made a simple test. I did a * * * * * root /sbin/sync and my mailbox
> #_ automagically filled up with "Cron <root@...> /bin/sync". Opening up the
> #_ e-mail, it said "/bin/sh: root: command not found". Go figure ;->
>
> I think because it should be /bin/sh, or sometimes /bin/bash. Check out some
> shell scripts, they have the shebang in it... #!/bin/bash or #!/bin/sh.
Federico Sevilla III wrote:
>
> Interesting. This does NOT happen on my system. I cannot tell what "kind"
> of cron, I'm running as there is no information in the package about this.
> It's version 3.0pl1,though. And I have lines such as:
>
> 30 2 * * * root /usr/local/sbin/samba.backup daily
Recently, I have been trying out RH6.2 (migrating from RH5.2) and in the
fresh install, /etc/crontab looked like this:
# run-parts
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
And everything was running fine, with no weird emails, when I added this line
which was running ok in RH5.2's cron
*/5 * * * * root /etc/ppp/ppp-check
I also started having similar emails, even for the "run-parts /etc/cron.xxx"
entries like this:
/bin/bash: root: command not found
It seems that the "root" entry is being interpreted as a command entry.
For now, the remedy is to delete the "root" part, and the said emails
stopped coming ...
But it does not feel right. "run-parts /etc/cron.xxx" entries were ok
before even with the "root" part, and it was ok with RH5.2's cron...
perhaps something broke when the last line was added? Anyway I'll
check in the docs if I have the time ...
--barny
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]