linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ
linux ¶¨Ê±ÈÎÎñ crontab Ïêϸ½âÊÍ
cron ÊÇlinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔϵķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ£º
ÒýÓÃ:
/sbin/service crond start //Æô¶¯·þÎñ
/sbin/service crond stop //¹Ø±Õ·þÎñ
/sbin/service crond restart //ÖØÆô·þÎñ
/sbin/service crond reload //ÖØÐÂÔØÈëÅäÖÃ
//=========================================================================
# Use the hash sign to prefix a comment
# +---------------- minute (0 - 59)
# | +------------- hour (0 - 23)
# | | +---------- day of month (1 - 31)
# | | | +------- month (1 - 12)
# | | | | +---- day of week (0 - 7) (Sunday=0 or 7)
# | | | | |
# * * * * * command to be executed
//=============================================================================
ºÜ¶àʱºò£¬ÄãûÓа취ÖØÐÂÆô¶¯crond£¬Õâ¸öʱºò¿ÉÒÔÏÈkillall crond È»ºóÔÙcrond restart¾ÍŶokÁË¡£
ÄãÒ²¿ÉÒÔ½«Õâ¸ö·þÎñÔÚϵͳÆô¶¯µÄʱºòÒ²×Ô¶¯Æô¶¯£º
ÒýÓÃ:
ÔÚ/etc/rc.d/rc.localÕâ¸ö½Å±¾µÄĩβ¼ÓÉÏ£º
/sbin/service crond start
ÏÖÔÚcronÕâ¸ö·þÎñÒѾÔÚ½ø³ÌÀïÃæÁË£¬ÎÒÃǾͿÉÒÔÓÃÕâ¸ö·þÎñÁË£¬cron·þÎñÌṩÒÔϼ¸ÖÖ½Ó¿Ú¹©´ó¼ÒʹÓãº
1.Ö±½ÓÓÃcrontabÃüÁî±à¼
cron·þÎñÌṩcrontabÃüÁîÀ´É趨cron·þÎñµÄ£¬ÒÔÏÂÊÇÕâ¸öÃüÁîµÄһЩ²ÎÊýÓë˵Ã÷£º
ÒýÓÃ:
crontab -u //É趨ij¸öÓû§µÄcron·þÎñ£¬Ò»°ãrootÓû§ÔÚÖ´ÐÐÕâ¸öÃüÁîµÄʱºòÐèÒª´Ë²ÎÊý
crontab -l //Áгöij¸öÓû§cron·þÎñµÄÏêϸÄÚÈÝ
crontab -r //ɾ³ýû¸öÓû§µÄcron·þÎñ
crontab -e //±à¼Ä³¸öÓû§µÄcron·þÎñ
±ÈÈç˵root²é¿´×Ô¼ºµÄcronÉèÖãº
ÒýÓÃ:
crontab -u root -l
ÔÙÀýÈ磬rootÏëɾ³ýfredµÄcronÉèÖãº
ÒýÓÃ:
crontab -u fred -r
ÔÚ±à¼cron·þÎñʱ£¬±à¼µÄÄÚÈÝÓÐһЩ¸ñʽºÍÔ¼¶¨£¬ÊäÈ룺
ÒýÓÃ:
crontab -u root -e
½øÈëvi±à¼Ä£Ê½£¬±à¼µÄÄÚÈÝÒ»¶¨Òª·ûºÏÏÂÃæµÄ¸ñʽ£º
ÒýÓÃ:
*/1 * * * * ls >> /tmp/ls.txt
Õâ¸ö¸ñʽµÄÇ°Ò»²¿·ÖÊǶÔʱ¼äµÄÉ趨£¬
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
1. ÏÂÔØLinuxÏÂDNWµÄPC¶ËUSBÇý¶¯ºÍдÈ빤¾ß
ÏÂÔصØÖ·£ºÒÑÉÏ´«ÖÁCSDN
2. ±àÒëPC¶ËUSBÇý¶¯ºÍдÈ빤¾ß
2.1 ½âѹËõ
$ tar xzvf /path/to/dnw_linux.tgz
dnw_linux/
dnw_linux/secbulk/
dnw_linux/secbulk/Makefile
dnw_linux/secbulk/secbulk.c
dnw_linux/dnw/
dnw_linux/dnw/dnw.c
......
ÎÒÒѾ°ëÄêûÓÐʹÓà Windows µÄ·½Ê½¹¤×÷ÁË¡£Linux ¸ßЧµÄÍê³ÉÁËÎÒËùÓеŤ×÷¡£
GNU/Linux ²»ÊÇÿ¸öÈ˶¼ÏëÓõġ£Èç¹ûÄãÖ»ÐèÒª´¦ÀíÒ»°ãµÄÊÂÎñ£¬´òÓÎÏ·£¬ÄÇôÄã²»ÐèÒªÁ˽âÏÂÃæÕâЩÁË¡£
ÎÒ²»ÊÇÒ»¸ö¿ñÈȵÄ×ÔÓÉÈí¼þ·Ý×Ó£¬ËäÈ»ÎÒºÜϲ»¶×ÔÓÉÈí¼þ¡£ÕâƪÎÄÕÂÒ²²»ÊÇÓÃÀ´ÍÆÐÐ×ÔÓÉÈí¼þÔ˶¯µÄ£¬ËäÈ»ÎÒ¾ ......
Ç°ÑÔ
linuxÓÐ×Ô¼ºÒ»Ì×ÍêÕûµÄÆô¶¯Ìåϵ£¬×¥×¡ÁËlinuxÆô¶¯µÄÂöÂ磬linuxµÄÆô¶¯¹ý³Ì½«²»ÔÙÉñÃØ¡£
ÔĶÁ֮ǰ½¨ÒéÏÈ¿´Ò»Ï¸½Í¼¡£
±¾ÎÄÖмÙÉèinittabÖÐÉèÖõÄinit treeΪ£º
/etc/rc.d/rc0.d
/etc/rc.d/rc1.d
/etc/rc.d/rc2.d
/etc/rc.d/rc3.d
/etc/rc.d/rc4.d
/etc/ ......
ƽʱ¾³£ÓÃlinuxµÄfreeÃüÁî²é¿´ÄÚ´æÐÅÏ¢£¬½ñÌìÒòΪmysqlϵͳͻȻËÀµôÁË£¬¶øÇÒÎÞ·¨Æô¶¯¡£¾ßÌåÏÖÏóÊÇÒ»Ö±ÏÔʾÕýÔÚÆô¶¯µÄ½ø¶È״̬£¬µ«Ê¼ÖÕÎÞ·¨Æô¶¯£¬Æ½Ê±Æô¶¯¼¸Ãë¾ÍÍê³ÉÁ˵ġ£ËùÒԿ϶¨ÓÐÎÊÌâ¡£ÓÚÊÇ×¼±¸²é¿´ÏÂÊDz»ÊÇÈÕÖ¾ÐÅÏ¢¶àÁË£¬Õ¼ÂúÁËÓ²Å̿ռ䡣ͻȻ·¢ÏÖÒ»¸öÎÊÌ⣬Ôõô²é¿´Ò»¸öÎļþºÍĿ¼µÄ¿Õ¼äÕ¼ÓÃÇé¿öÄØ£¬ÒÔÇ°¶¼ÓÃls -al à ......