mirror of https://github.com/CrimsonTome/tldr.git
crontab: refresh (#8182)
parent
5e2f4072bc
commit
59a15bf3a5
|
@ -1,8 +1,7 @@
|
|||
# crontab
|
||||
|
||||
> Schedule cron jobs to run on a time interval for the current user.
|
||||
> Job definition format: "(min) (hour) (day_of_month) (month) (day_of_week) command_to_execute".
|
||||
> More information: <https://manned.org/crontab>.
|
||||
> More information: <https://crontab.guru/>.
|
||||
|
||||
- Edit the crontab file for the current user:
|
||||
|
||||
|
@ -28,10 +27,10 @@
|
|||
|
||||
`0 10 * * * {{command_to_execute}}`
|
||||
|
||||
- Sample job which runs every minute on the 3rd of April:
|
||||
- Sample crontab entry, which runs a command every 10 minutes:
|
||||
|
||||
`* * 3 Apr * {{command_to_execute}}`
|
||||
`*/10 * * * * {{command_to_execute}}`
|
||||
|
||||
- Sample job which runs a certain script at 02:30 every Friday:
|
||||
- Sample crontab entry, which runs a certain script at 02:30 every Friday:
|
||||
|
||||
`30 2 * * Fri {{/absolute/path/to/script.sh}}`
|
||||
|
|
Loading…
Reference in New Issue