ts-7000
[Top] [All Lists]

[ts-7000] Re: cron on 7250

To:
Subject: [ts-7000] Re: cron on 7250
From: "j.chitte" <>
Date: Mon, 07 Apr 2008 23:10:58 -0000
--- In  Jim Jackson <> wrote:
>
> 
> 
> >>> 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
>

Hi,

looks like a cross post. I'd found /var/spool/cron was needed but was 
probably getting confused by other variants as you suggest.

Bit of a side issue, do you know a way to get the .config for 
busybox? The TS distributed one is pretty old and buggy and a quick 
look at the changelog makes me quite keen to update it.

I'm just cautious about borking the whole system if I dont get it 
close to the TS config.

Thanks for you help.





------------------------------------

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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU