>>> I need to set up a couple of cron jobs on a 7250. I have set crond to
>>> start in rcS.sysinit and put a simple test line in /etc/crontab
>>>
>>> * * * * * root /etc/cron/cron.test
>>>
>>>> From what I've been able to find this should be enough but it does
>>> not get executed as I expect.
>>>
>>> Is this too minimalist?
>>
>> Is crond running?
>>
>> ps | grep crond
>>
>> Is crond present in your setup? I can't remember if it was compiled into
>> the supplied busybox? You'll need to arrange for crond to be started
>> at boot.
>>
> like I said , I set it to run at boot, I should have added that I
> checked. Yes crond is there in ps
>
> PID Uid VmSize Stat Command
> 1 root 464 S /sbin/init
> 2 root SW [keventd]
> 3 root SWN [ksoftirqd_CPU0]
> 4 root SW [kswapd]
> 5 root SW [bdflush]
> 6 root SW [kupdated]
> 7 root SW [mtdblockd]
> 30 root 624 S crond
> 77 1 448 S /sbin/portmap
> 82 root 680 S /usr/sbin/inetd
Sorry, I should have read more carefully.
> $ cat /etc/cron/cron.test
> #!/bin/sh
> echo "cron test"`date "+%D"`>/etc/cron/cron.msg
>
> this works from cli:
> $ cat /etc/cron/cron.msg
> cron test04/07/08
>
> $ cat /etc/crontab
> * * * * * /etc/cron/cron.test
>
> Am I messing up or is this more BusyBorks?
I did
strings /bin/busybox | grep cron
and there is no mention of /etc/crontab. I suspect it emulates the original
bsd cron, not more modern ones, like vixie cron - which introduced
refinements like global /etc/crontab and /etc/cron.d
Use crontab -e to setup your crontab, it'll put it in
/var/spool/cron/crontabs under the account name, and it works, I've just
checked.
Jim
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|