I'm always amazed when I learn something new about a tool that I've been using for a rather long time. Take for example, cron. Not your run of the mill, everyday cron. I'm talking about the smarter cron that comes with most Linux distributions nowadays: Vixie cron.
(Vixie cron is named after Paul Vixie, the creator of BIND and other Unix goodness.)
While looking at the manual page for the crontab file format, I discovered a chunk that I'd never seen before:
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 * * * *".
Hmm. @reboot. Isn't that handy. There's an easy way to give users the ability to run something at boot time without root access.
Posted by jzawodn at October 19, 2003 06:19 AM