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/
|