Can I do: crontab -e @reboot monthly yum clean plugins
On 05/13/2012 05:48 PM, Frank Murphy wrote:
Can I do: crontab -e @reboot monthly yum clean plugins
My guess is no.... from man 5 crontab
EXTENSIONS These special time specification "nicknames" which replace the 5 initial time and date fields, and are prefixed with the '@' character, are sup‐ ported: @reboot : Run once after reboot. @yearly : Run once a year, ie. "0 0 1 1 *". @annually : Run once a year, ie. "0 0 1 1 *". @monthly : Run once a month, ie. "0 0 1 * *". @weekly : Run once a week, ie. "0 0 * * 0". @daily : Run once a day, ie. "0 0 * * *". @hourly : Run once an hour, ie. "0 * * * *".
On 13/05/12 10:58, Ed Greshko wrote:
On 05/13/2012 05:48 PM, Frank Murphy wrote:
Can I do: crontab -e @reboot monthly yum clean plugins
My guess is no.... from man 5 crontab
EXTENSIONS These special time specification "nicknames" which replace the 5 initial time and date fields, and are prefixed with the '@' character, are sup‐ ported: @reboot : Run once after reboot. @yearly : Run once a year, ie. "0 0 1 1 *". @annually : Run once a year, ie. "0 0 1 1 *". @monthly : Run once a month, ie. "0 0 1 * *". @weekly : Run once a week, ie. "0 0 * * 0". @daily : Run once a day, ie. "0 0 * * *". @hourly : Run once an hour, ie. "0 * * * *".
Was hoping I could cheat, ah well, back to the garden.
On 13May2012 10:48, Frank Murphy frankly3d@gmail.com wrote: | Can I do: | crontab -e | @reboot monthly yum clean plugins
I'm sure you could put such a line in. Doubtless it would run the "monthly" command (no such animal I expect, and woe to you if there were!) after a reboot.
What, precisely, do you want it to mean?
Reboot once a month? Once a month, but only after a reboot? After a reboot, but only if it has been at least a month since the last one?
They can probably all be done (not exactly as typed). You'd need to test some state yourself.