Set up scheduled tasks
The effect of Crontab -e is the same as vi, both are editors
->crontab –e
join in:
0 20 * */1 4 su - oracle -c /home/oracle/oracle.sh
Tasks to be run under oracle
Description: Run the dcms.sh file on every Thursday of the month
Time Range: Minutes: 0 ~ 59
Hours: 0 ~ 23
Date: 1 ~ 31
Month: 1 ~ 12
Week: 0 ~ 7
Description: Crontab -e
-u: root privilege, help other users create/delete crontab job schedule
-e: edit the job content of crontab
-l: View the working content of crontab
-r: delete all crontab jobs