linux下设置定时任务
crontab -e
A B C D E USERNAME /path/to/command arg1 arg2
Explanation of above cron syntax:
- A: Minutes range: 0 – 59
- B: Hours range: 0 – 23
- C: Days range: 0 – 31
- D: Months range: 0 – 12
- E: Days of the week range: 0 – 7. Starting from Monday, 0 or 7 represents Sunday
- USERNAME: replace this with your username
- /path/to/command – The name of the script or command you want to schedule
reference
Updated: 2023-02-11 16:37
Created: 2022-11-06 19:30