Talk:Cron: Difference between revisions

From NixOS Wiki
Latest comment: 14 October 2022 by Rampion in topic Link to different crontab manpage
imported>L0b0
 
imported>Rampion
linked crontab man page doesn't match default man page in NixOS
 
Line 4: Line 4:


[[User:L0b0|L0b0]] ([[User talk:L0b0|talk]]) 23:04, 27 September 2021 (UTC)
[[User:L0b0|L0b0]] ([[User talk:L0b0|talk]]) 23:04, 27 September 2021 (UTC)
== Link to different crontab manpage ==
The linked `crontab` man page doesn't match the `crontab` provided with NixOS; in particular, the nicknames (`@reboot`, `@daily`) are not supported by NixOS's `crontab`
These special time specification "nicknames" are supported, which replace the 5 initial time and date fields, and are prefixed by the '@' character:
@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 * * * *".
This link should probably be changed.
[[User:Rampion|Rampion]] ([[User talk:Rampion|talk]]) 12:48, 14 October 2022 (UTC)

Latest revision as of 12:48, 14 October 2022

Where does the system cron job output go by default?

I see the command printed by journalctl, but no output.

L0b0 (talk) 23:04, 27 September 2021 (UTC)Reply

Link to different crontab manpage

The linked `crontab` man page doesn't match the `crontab` provided with NixOS; in particular, the nicknames (`@reboot`, `@daily`) are not supported by NixOS's `crontab`

These special time specification "nicknames" are supported, which replace the 5 initial time and date fields, and are prefixed by the '@' character:

@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 * * * *".

This link should probably be changed.

Rampion (talk) 12:48, 14 October 2022 (UTC)Reply