On debian, the special crontabs in /etc/cron.d also get the extra field.
Which is quite good (exim hides itself in there, and runs the jobs as
the mail user). A tidy debian server shouldn't have more than the three
run-parts lines in /etc/crontab. Create a crontab in /etc/cron.d with
the same format for your tasks - I have a /etc/cron.d/backup that has
lines for both daily and weekly backups. Alternatively I could have put
scripts in /etc/cron.daily and /etc/cron.weekly if I wasn't so picky
about the times they are run.
And for one more interesting crontab fact that not everyone seems to
know is that @ commands in more recent versions of cron.
>From crontab(5)
Instead of the first five fields, one of eight special strings may
appear:
string meaning
------ -------
@reboot Run once, at startup.
@yearly Run once a year, "0 0 1 1 *".
@annually (same as @yearly)
@monthly Run once a month, "0 0 1 * *".
@weekly Run once a week, "0 0 * * 0".
@daily Run once a day, "0 0 * * *".
@midnight (same as @daily)
@hourly Run once an hour, "0 * * * *".
On Thu, 2003-07-17 at 23:34, Chris Hellyar wrote:
> Well, there you go, you learn something every day... Volker, ignore my
> last post :-).
>
> > I'll just elaborate on that... people are aware, that /etc/crontab is
> > special in that it has an extra field?
PS. Sorry Chris, sent this to you instead of the list first off. Damn
evolution being erratic in choosing reply addresses.
--
Sascha Beaumont <[EMAIL PROTECTED]>