the_ntp_functions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
the_ntp_functions [2017/03/18 13:20] – [to do] walkeradmin | the_ntp_functions [2017/03/18 13:25] – [to do] walkeradmin | ||
---|---|---|---|
Line 277: | Line 277: | ||
\\ | \\ | ||
+ | |||
+ | |||
+ | |||
+ | To use cron (should already be installed): | ||
+ | \\ | ||
+ | \\ | ||
+ | sudo crontab -e (reboots require super user rights) | ||
+ | \\ | ||
+ | \\ | ||
+ | Insert the following line: | ||
+ | \\ | ||
+ | \\ | ||
+ | 0 0 | ||
+ | \\ | ||
+ | \\ | ||
+ | Explanation: | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | m h dom mon | ||
+ | minute hour dayOfMonth Month dayOfWeek commandToRun | ||
+ | |||
+ | |||
+ | so the line | ||
+ | 0 0 | ||
+ | |||
+ | |||
+ | would reboot your system every day at 00:00. | ||
+ | </ | ||
+ | |||
+ | |||
+ | Ctrl+X, Y, Enter should get you out of crontab (if using nano) | ||
+ | |||
+ | Note: you might have to run crontab -e as root, because shutdown needs root. | ||
+ | |||
the_ntp_functions.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1