ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: cron on 7250?

To:
Subject: Re: [ts-7000] Re: cron on 7250?
From: Petr Štetiar <>
Date: Thu, 2 Feb 2012 20:09:14 +0100
Mike Dodd <> [2012-02-02 10:23:15]:

> $ busybox crontab
> crontab: applet not found
> $

Because it wasn't enabled, easy.

> No problem that the crontab appletdoesn't exist -- I know how to edit a 
> crontab file. My text crontab contains this single line:
> 
> 0-59 * * * *  root /var/spool/cron/hello
> 
> The 'hello' script is executable and works fine from the command line.
> 
>   My question is WHERE Dillon crond expects to find the crontab file. 
> I've tried it in:
> 
> /var/spool/cron
> /var/spool/cron/crontabs
> /var/spool/cron/crontabs/root

Hm, it's really that hard to download source of busybox, grep for crontab and
read that output carefully?

...
./miscutils/Config.src:   Crond is a background daemon that parses individual 
crontab
./miscutils/Config.src:   format /var/spool/cron/crontabs/<username> files, for 
example:
./miscutils/Config.src:       $ cat /var/spool/cron/crontabs/root
./miscutils/Config.src: bool "crontab"
./miscutils/Config.src:   Crontab manipulates the crontab for a particular 
user. Only
./miscutils/Config.src:   the superuser may specify a different user and/or 
crontab directory.
./miscutils/Config.in:    Crond is a background daemon that parses individual 
crontab
./miscutils/Config.in:    format /var/spool/cron/crontabs/<username> files, for 
example:
./miscutils/Config.in:        $ cat /var/spool/cron/crontabs/root
...

> But nothing happens. Based on my crontab, crond should execute the 
> "hello" script every minute, but nothing at all happens.

Find the crond's log and if there's nothing useful, then as the last resort 
look into
the source, add some debug printf() there, recompile, run find what's wrong,
fix it and you're done.

Another hint from miscutils/crond.c:

...
19 //usage:     "\n        -S      Log to syslog (default)"
20 //usage:     "\n        -l      Set log level. 0 is the most verbose, 
default 8"
21 //usage:        IF_FEATURE_CROND_D(
22 //usage:     "\n        -d      Set log level, log to stderr"
...

-- ynezz


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

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