I learn something new every day. I’ve been using computers for over a decade, and not a day goes by that I don’t learn something new about something I knew a lot about.
Vixie cron’s @reboot (Jeremy Zawodny’s blog)
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.