0

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.

2 Answers2

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
1

In the worst case you will have to write down the same cron job twice.

Marki
  • 2,854
  • 3
  • 28
  • 45