crontabÃüÁîÓÐÈýÖÖÐÎʽµÄÃüÁîÐнṹ£º
crontab [-u user] [file]
crontab [-u user] [-e|-l|-r]
crontab -l -u [-e|-l|-r] µÚ Ò»¸öÃüÁîÐÐÖУ¬fileÊÇÃüÁîÎļþµÄÃû×Ö¡£Èç¹ûÔÚÃüÁîÐÐÖÐÖ¸¶¨ÁËÕâ¸öÎļþ£¬ÄÇôִÐÐcrontabÃüÁÔò½«Õâ¸öÎļþ¿½±´µ½crontabsĿ¼Ï£»Èç¹û ÔÚÃüÁîÐÐÖÐûÓÐÖƶ¨Õâ¸öÎļþ£¬crontabÃüÁ½ÓÊܱê×¼ÊäÈ루¼üÅÌ£©ÉϼüÈëµÄÃüÁ²¢½«ËûÃÇÒ²´æ·ÅÔÚcrontabĿ¼Ï¡£
ÃüÁîÐÐÖÐ-rÑ¡ÏîµÄ×÷ÓÃÊÇ´Ó/usr/spool/cron/crontabsĿ¼ÏÂɾ³ýÓû§¶¨ÒåµÄÎļþcrontab£»
ÃüÁîÐÐÖÐ-lÑ¡ÏîµÄ×÷ÓÃÊÇÏÔʾÓû§crontabÎļþµÄÄÚÈÝ¡£
ʹÓÃÃüÁîcrontab -u user -eÃüÁî±à¼Óû§userµÄcron(c)×÷Òµ¡£Óû§Í¨¹ý±à¼ÎļþÀ´Ôö¼Ó»òÐÞ¸ÄÈκÎ×÷ÒµÇëÇó¡£
Ö´ÐÐÃüÁîcrontab -u user -r¼´¿Éɾ³ýµ±Ç°Óû§µÄËùÓеÄcron×÷Òµ¡£
×÷ ÒµÓëËüÃÇÔ¤¶¨µÄʱ¼ä´¢´æÔÚÎļþ/usr/spool/cron/crontabs/usernameÀï¡£usernameʹÓû§Ãû£¬ÔÚÏàÓ¦µÄÎļþÖдæ·Å×Å ¸ÃÓû§ËùÒªÔËÐеÄÃüÁî¡£ÃüÁîÖ´ÐеĽá¹û£¬ÎÞÂÛÊDZê×¼Êä³ö»¹ÊÇ´íÎóÊä³ö£¬¶¼½«ÒÔÓʼþÐÎʽ·¢¸øÓû§¡£ÎļþÀïµÄÿһ¸öÇëÇó±ØÐë°üº¬ÒÔspacesºÍtabs·Ö¸î µÄÁù¸öÓò¡£Ç°Îå¸ö×ֶοÉÒÔÈ¡ÕûÊýÖµ£¬Ö¸¶¨ºÎʱ¿ªÊ¼¹¤×÷£¬µÚÁù¸öÓòÊÇ×Ö·û´®£¬³ÆΪÃüÁî×ֶΣ¬ÆäÖаüÀ¨ÁËcrontabµ÷¶ÈÖ´ÐеÄÃüÁî¡£
µÚÒ»µÀµÚÎå¸ö×ֶεÄÕûÊýÈ¡Öµ·¶Î§¼°ÒâÒåÊÇ£º
0¡«59 ±íʾ·Ö
1¡«23 ±íʾСʱ
1¡«31 ±íʾÈÕ
1¡«12 ±íʾÔ·Ý
0¡«6 ±íʾÐÇÆÚ£¨ÆäÖÐ0±íʾÐÇÆÚÈÕ£©
/usr /lib/cron/cron.allow±íʾËÄÜʹÓÃcrontabÃüÁî¡£Èç¹ûËüÊÇÒ»¸ö¿ÕÎļþ±íÃ÷ûÓÐÒ»¸öÓû§ÄÜ°²ÅÅ×÷Òµ¡£Èç¹ûÕâ¸öÎļþ²»´æÔÚ£¬¶øÓÐÁí ÍâÒ»¸öÎļþ/usr/lib/cron/cron.deny,ÔòÖ»Óв»°üÀ¨ÔÚÕâ¸öÎļþÖеÄÓû§²Å¿ÉÒÔʹÓÃcrontabÃüÁî¡£Èç¹ûËüÊÇÒ»¸ö¿ÕÎļþ±íÃ÷ÈκΠÓû§¶¼¿É°²ÅÅ×÷Òµ¡£Á½¸öÎļþͬʱ´æÔÚʱcron.allowÓÅÏÈ£¬Èç¹û¶¼²»´æÔÚ£¬Ö»Óг¬¼¶Óû§¿ÉÒÔ°²ÅÅ×÷Òµ¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ