Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux ¶¨Ê±ÈÎÎñ crontabµÄÓ÷¨

crontabµÄÓ÷¨---linux¶¨Ê±ÈÎÎñ
2008Äê07ÔÂ30ÈÕ ÐÇÆÚÈý ÏÂÎç 01:00
crontabµÄÓ÷¨---linux¶¨Ê±ÈÎÎñ
Step 1:
    ʹÓÃÃüÁîcrontab
-e±à¼­Ò»¸ö¶¨Ê±Ö´ÐеÄÈÎÎñ»òÔÚ/var/spool/cron/crontabsĿ¼ÏÂн¨Ò»¸öÓë×Ô¼ºÓû§ÃûÏàͬµÄÈÎÎñ.
    ¼´:
   
#ÿ¸ôÒ»·ÖÖÓÖ´ÐÐÒ»´Îºǫ́³ÌÐòtmpmail
    * * * * * /home/milch/tmpmail
     ˳±ãÌáÒ»ÏÂcrontabÖеÄÃüÁî¸ñʽ:
     µÚÒ»¸ö * ±íʾ·ÖÖÓ (0-59),
     µÚ¶þ¸ö *
±íʾСʱ (0-23),
     µÚÈý¸ö * ±íʾÔ·ÝÖеÄijһÌì (1-31),
     µÚËĸö * ±íʾһÄêÖеÄijһÔÂ
(1-12),
     µÚÎå¸ö * ±íʾһÖÜÖеÄÐÇÆÚ¼¸ (0-6 with 0=Sunday).
Step 2:
     Í£Ö¹cron½ø³Ì,²¢ÖØÆô,
     ÃüÁî:/etc/init.d/cron stop
         
/etc/init.d/cron start
-------------------------------------------------------------------------
Ö¸
ÁîÓï·¨
crontab [ -u user ] file
crontab [ -u user ] { -l | -r | -e }
Ö¸Áî˵Ã÷
crontab ÌṩÎÒÃÇÔڹ̶¨µÄ¼ä¸ôʱ¼äÖ´ÐÐ×Ô¶©µÄ³Ìʽ¡¢ÏµÍ³Ö¸Áî»ò shell
secrip¡£Ê±¼ä¼ä¸ôµÄµ¥Î»¿ÉÒÔÊÇ·ÖÖÓ¡¢Ð¡Ê±¡¢ÈÕ¡¢ÖÜ¡¢Ô¼°ÒÔÉϵÄÈÎÒâ×éºÏ¡£ÔÊÐíʹÓÃÕßÀëÏßÖ´ÐУ¬²¢ÇÒ¿ÉÒÔ½«Ö´Ðнá¹ûÒÔ email
֪ͨʹÓÃÕß¡£Òò´Ë£¬·Ç³£ÉèºÏ¶ÔÖÜÆÚÐԵĹÜÀí·ÖÎö»ò×ÊÁϱ¸·ÝµÈ¹¤×÷¡£
»ù±¾ÉÏ£¬crontab µÄÖ¸Áî¸ñʽ·ÖΪÁù¸ö²¿·Ö£¬Ç°Îå¸öΪʱ¼ä¼ä¸ô£¬×îºóÔòÊÇÖ´ÐеÄÖ¸Áÿһ¸ö²¿·ÖÓÿոñÀ´Çø¸ô¡£
·Ö -- 0-59
ʱ -- 0-23
ÈÕ -- 1-31
Ô -- 1-12 »òʹÓÃÓ¢ÎÄÃû³Æ
ÐÇÆÚ --
0-7 »òʹÓÃÓ¢ÎÄÃû³Æ
¹¤×÷ÃüÁî -- Ö¸Áshell script£¬³Ìʽ....(½¨ÒéʹÓþø¶Ô·¾¶)
ÒÔÉÏÊÇ
crontab µÄ»ù±¾¸ñʽ¡£
Ñ¡Ïî˵Ã÷
-u user
ÒÔÖ¸¶¨µÄʹÓÃÕßÉí·Ý£¬Ö´ÐÐ crontab ¹¤×÷¡£´ËÑ¡Ïî½ö¹© root ʹÓá£
-l
ÏÔʾʹÓÃÕßÏÖÐÐµÄ crontab µµ¡£
-r
ÒƳýÏÖÐÐµÄ crontab µµ¡£
-e
½øÈë vi ±à¼­ crontab µµ(ÈçÓÐÉ趨 VISUAL »ò EDITOR
»·¾³±äÊý£¬ÔõʹÓøû·¾³±äÊýËùÉ趨µÄ±à¼­Æ÷À´±à¼­)¡£ÔÚʹÓÃÕßÍ˳ö±à¼­Æ÷ºó£¬»á×Ô¶¯½«Ëù±à¼­ crontab µµ£¬ÖÃÈë crontab Ö´ÐС£
Ïà
¹Øµµ°¸
/etc/cron.allow
/etc/cron.deny
ʵÀý


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

LinuxÎļþ²Ù×÷ƪ

1.н¨Îļþ
   Ö¸Áî:¢Ù> ÎļþÃû
          ¢Útouch ÎļþÃû
2.ɾ³ýÎļþ
   Ö¸Áî:rm
   ²ÎÊý:-d  Ö±½Ó°ÑÓûɾ³ýµÄĿ¼µÄÓ²Á¬½ÓÊý¾Ýɾ³É0,ɾ³ýĿ¼
           -f   Ç ......

ubuntu linux ppp ²¦ºÅ GPRS

Ò» Ê×ÏÈ°²×°ppp£¬ ÓÃsudo apt-get install ppp
¶þ ²¦ºÅÉÏÍø£¬ Ò»¹²ÓÐ3ÖÖ·½Ê½
1.ʹÓÃÃüÁî pppd call somescript µÄ·½Ê½
- ÔÚ /etc/pppĿ¼Ï£¬½¨Á¢3¸öÎļþ£ºpap-secrets,chap-secrets,gprs-connect-chat
  ºÍÒ»¸öĿ¼:peers
  ÔÚpeersĿ¼Ï½¨Á¢Ò»¸öÎļþgprs
Õâ4¸öÎļþµÄÄÚÈÝÈçÏ£º
---------------------- ......

LinuxºÍWindows XPÖ®¼äʹÓÃFTP»¥´«Îļþ

ÎÒÊÇÓÃÐéÄâ»ú×°ÁËLinux£¬ÕæʵϵͳÊÇWindows XP£¬ÔÚWindows XPÏÂÓÃServ-uÈí¼þ¼ÜÉèÁËFTP·þÎñÆ÷£¬È»ºóÎÒÃǾͿÉÒÔÔÚÐéÄâ»úµÄLinuxϵǼ¸ÃFTP·þÎñÆ÷ÏÂÔØ»òÉÏ´«ÎļþÁË£¬²»Í¬µÄ½öÊÇÔÚLinuxÏÂÊÇÔÚÃüÁîÐÐÀïÊäÈëÏà¹ØFTPÃüÁîÀ´Íê³ÉµÄ£¬Ó¦¸ÃÒ²ÓÐÏñFlashFXP¡¢CuteFTPÕâÒ»ÀàµÄLinuxרÓÃÈí¼þ£¬²»¹ýÎҹª¹ÑÎÅ£¬²»Á˽⣬Ҳ¾Í²»ÎóÈË×ÓµÜÁË¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ