In the Cron manpage it mentions the special string "@reboot". Can I combine this with a regular schedule? The goal is simply to schedule a job to run once a day AND immediately in the event of a system reboot.
Asked
Active
Viewed 395 times
2 Answers
4
Yes, although you'll need to enter it as two cron jobs.
@reboot /do/something
10 0 * * * /do/something

ceejayoz
- 32,910
- 7
- 82
- 106
-
thanks, I am aware of that option. Just wondering if there's a way to combine them for the sake of eliminating redundant entries – But those new buttons though.. Aug 27 '13 at 19:34
-
1No, there's no syntax that I'm aware of to combine the two types into one rule. – ceejayoz Aug 27 '13 at 19:48