Linux??crontab????????
???????????? ???????[ 2015/3/3 15:50:49 ] ????????Linux ?????? ????
???????????4??????apache
???????? : crontab
?????????? : ?????????
??????÷?? :
????crontab file [-u user]-?????????????????crontab??
????crontab-[-u user]-???????????????crontab.
????crontab-1[user]-?г????????crontab.
????crontab-e[user]-?????????crontab.
????crontab-d[user]-??????????crontab.
????crontab-c dir- ???crontab??????
????crontab?????????M H D m d cmd.
????M: ?????0-59????
????H??С???0-23????
????D????1-31????
????m: ?£?1-12????
????d: ??????????0~6??0?????????
????cmd????е????????????sh??У????shell???USER??HOME??SHELL??????????????
??????? :
????crontab ????????????????????????????г??????????仰?????????????????????-u user ????趨???
????user ????????????????????????????(??????? root)?????????????????????????? -u user ???????????
????????????????
???????? :
????crontab -e : ?????????????趨??????????????????? VI?????????????????????????????趨 VISUAL ????????
??????????????????????(????? setenv VISUAL joe)
????crontab -r : ???????????
????crontab -l : ?г?????????
????crontab file [-u user]-?????????????????crontab??
??????????????? :
????f1 f2 f3 f4 f5 program
???????? f1 ?????????f2 ???С???f3 ???????·??е??????f4 ????·??f5 ???????????е?????program ?????
?????е????
?????? f1 ? * ?????????????? program??f2 ? * ?????С??????г???????????
?????? f1 ? a-b ??????? a ??????? b ???????????????У?f2 ? a-b ??????? a ???? b С??????У?????????
?????? f1 ? */n ????? n ???????????????Σ?f2 ? */n ???? n С?????????????Σ?????????
?????? f1 ? a?? b?? c??... ?????? a?? b?? c??... ???????У?f2 ? a?? b?? c??... ?????? a?? b?? c...??С????У?????????
??????????????????е??趨????????? file ?У??? crontab file ???????趨?????
???????? :
????#???????7???????? /bin/ls :
????0 7 * * * /bin/ls
?????? 12 ????? ???????? 6 ?? 12 ???У????3??С??????? /usr/bin/backup :
????0 6-12/3 * 12 * /usr/bin/backup
???????????????????? 5:00 ???????? lingfeng@bokeyuan.com :
????0 17 * * 1-5 mail -s "hi" lingfeng@bokeyuan.com < /tmp/maildata
?????????????? 0 ?? 20 ??? 2 ?? 20 ??? 4 ?? 20 ??....??? echo "haha"
????20 0-23/2 * * * echo "haha"
??????? :
??????????????????????????к??????????????????ó?????е??????????????????????????????????п?????
????????? > /dev/null 2>&1 ????
????????2 :
????#???????6??10??
????10 6 * * * date
????#?????С?
????0 */2 * * * date
????#????11??????8??????????С???????8??
????0 23-7/2??8 * * * date
????#????μ?4???????????????????????????11??
????0 11 4 * mon-wed date
????#1?·???????4??
????0 4 1 jan * date
????????
????$crontab -l ?г????????crontab.
????1.3.2??????????
????* ????????Χ????????
????/ ??????????
????-????????????????????
???????????????????????
????1.4???????????д????linux???????????nmon?С??????????
????????洢·?? /etc/cron.d
????Vi autoNmon.sh
????????????
????/opt/zww/nmon_x86_rhel52 -fT -s 2 -c 1800
?????2??????Σ??????1800?Σ???????1??С???
??????????????е???????nmon????????linux???????????
????2??????????
????????????????????Crontab –e
??????????????0 /1 * * * * root /etc/cron.d/autoNmon.sh
?????С??????ν????????root
????????????????????????????μ??????????????????run-parts
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Linux??????DDR????????????Linux?????????????????豸??????????linux???в???????????м??????????????????????????Linux????Linux??DNS????????????γ???????????Linux?????????????Linux????(???)????????Linux ????????????????????????????????Windows???У?Linux???????Linux????????????????Linux iommu??vfio???????Linux????ε???TCP???????Linux?????????????СLinux?·???????????Linux???Jexus?й?Asp.Net Core??ó???Linux?????????Щ??
???·???
??????????????????
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????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????