Linux??????????????crontab
???????????? ???????[ 2014/4/21 13:17:57 ] ????????linux ??????
???????·???? /etc/crontab
????????????
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan??feb??mar??apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun??mon??tue??wed??thu??fri??sat
# | | | | |
# * * * * * command to be executed
29 * * * * root run-parts /testcron >> /testcront
|
???????????????????ù?????????????е??????????С????
????[html] view plaincopy
????mm hh dd mm we user run-parts /dir
??????????????????н????????????????е??????????????????????????????????ò????С???????????????
????????????mm????????????????hh???С???????????? ?? ???? ??? run-parts ???? ????????????????????????? /n ?????n?????λ?????Ρ?
????eg.1
????/20 3 * * * root run-parts /testcron>>testcront ;????3????20??????????/testcron???μ????п???н??????3:00??3:20??3:40?????С?
????????????????·
????1.????????????? ????????????????н????
????2.???crontab??????????????????????????ж??????????
????3.????crond????
????service crond restart
????4.??????????????п?????????????У????????????????
????ls -l filename
????chmod 777 filename
????5.??????????????????????????????????????????????????shell?????????Щ?????????????java??gcc???????????????????????????·??????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11