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

perl×Ô¶¯ftpµÄ·½·¨£¨Linux°æ±¾,Net::FTP£©

 --ÕâÀïËùÓеÄperl¼¼ÊõÎÊÌⶼÊÇÎÒƽ³£´¦ÀíÊý¾ÝµÄʱºòÒªÓõ½µÄ£¬¿ÉÄܲ»ÊǺÜÇ¿µÄ³ÌÐò£¬µ«ÊÇÏ£ÍûÄܺÍÈÈ°®perlµÄͬ־£¬Ò»Æð·ÖÏí...
    ÔںܶàÇé¿öÏ£¬ÎÒÃÇÐèÒª´ÓÔ¶´¦·þÎñÆ÷ÉÏÏÂÔص±Ìì»òÕß×òÌìÉú³ÉµÄÈÕÖ¾Îļþ£¬À´²é¿´Ò»Ð©ÎÒÃÇÐèÒªµÄ¶«Î÷»òÕß±¸·Ý¡£
    Èç¹û²ÉÓÃÁËftp£¬ÄÇôÎÒÃÇÓ¦¸Ã½¨Á¢×Ô¶¯»¯µÄftp·½Ê½£¬À´·½±ãÎÒÃǵŤ×÷£¬ÏÂÃæÎÒÃǽ«Ê¹ÓÃperlÓïÑÔ±àдµÄ£¬µ±È»Ò²¿ÉÒÔÓÃshell¡£
    ÀûÓÃÁËperlµÄÄ£¿é£ºNet::FTP¡£
#!/usr/bin/perl
use Net::FTP;
 my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime();
$year=$year+1900;  #ÏÔʾΪµ±Ç°Äê·Ý
$mon=$mon+1;       #ÏÔʾΪµ±Ç°Ô·Ý
 $mon = "0".$mon if ($mon < 10);   #ÏÔʾÔ·ÝΪ 01,02µÄ¸ñʽ
$sum="$year-$mon-$mday";  #ÏÔʾʱ¼ä Ϊ 2008-12-22 ÕâÑùµÄ¸ñʽ
$ftp = Net::FTP->new("hostname(IPµØÖ·)", Debug =>1);
$ftp->login('user(Óû§Ãû)','passwd(ÃÜÂë)');
$ftp->binary;
$ftp->cwd("path(·¾¶)");
 $ftp->get("$sum-filename(ÎļþÃû)")  #±ÈÈç 2008-12-22_text.txt
      or die "$!";
$ftp->quit;
±£´æºó¡£¸øÎļþ¼ÓÉÏÖ´ÐС£ÀûÓà chmodÃüÁî¡£(ÎÒÃÇÔÝʱ°ÑÖ´ÐÐÎļþ½Ð×ö Ftp.pl)
ÔÚÀ´ÉèÖÃÀýÐÐÐÔÃüÁî  ÀûÓÃcrontabÃüÁî¡£
±ÈÈç ÄãÏëÔçÉÏ5µã°ë¿ªÊ¼Ö´ÐÐÏÂÔØ¡£Ôò¼ÓÈë
30 05 * * *  perl Ftp.pl
±£´æ¡£Ôò³ÌÐò¾Í¿ªÊ¼×Ô¶¯»¯ftpÁË¡£


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

ÁгöLinuxÔ´ÂëÏÂËùÓÐMakefileµÄ·½·¨

 Ò»¡¢ÒªÇó£º
1¡¢Äܹ»ÏÔʾ³öMakefileµÄ×ÜÊý
2¡¢ÄÜÏÔʾһ¼¶Ä¿Â¼ÏµÄMakefile×ÜÊý¡¢MakefileÁÐ±í¼°ÆäMakefileµÄÄÚÈÝ
3¡¢Äܽ«ÉÏÊöÄÚÈÝдÈëÏàÓ¦µÄÎļþ
¶þ¡¢ÊµÀý
rm -rf ~/Desktop/linux_Makefile/*
for i in `find . -maxdepth 1 -type d`
#½ö½öÊǵ±Ç°Ä¿Â¼£¬ËùÒÔÇ뽫±¾½Å±¾·ÅÔÚlinuxÔ´ÂëĿ¼ÏÂÖ´ÐС£
do
 e ......

The Linux Kernel Module Programming Guide

 http://www.faqs.org/docs/kernel/
µÄ11ºÍ12ÔÙÊÔÊÔ¡£
Linux Äں˵ÄWorkQueues API×öÁËÐÞ¸Ä
 
 
WorkQueue»úÖÆÔÊÐíÄں˴úÂëÔÚÍíÒ»µãµÄʱ¼äÖ´ÐС£Workqueueͨ¹ý´æÔÚµÄÒ»¸ö»òÕ߶à¸öרÃŵĽø³ÌʵÏÖ£¬È¥Ö´ÐжÓÁй¤×÷¡£ÒòΪÔÚ½ø³ÌµÄÉÏÏÂÎÄ»ã×ÜÖ´ÐУ¬Òò´ËÈç¹ûÐèÒª£¬Æä¿ÉÒÔsleep¡£WorkQueueÒ²¿ÉÒÔÑÓ³ÙÌض¨Ê±¼ä ......

Linux kernel development Chapter2 ½ø³Ì¹ÜÀí

1 ½ø³Ì¹ÜÀíÏà¹Ø´úÂë
  1.1 thread_info½á¹¹£¬ÔÚÎļþ<asm/thread_info.h>Öж¨Òå
      struct thread_info {
           struct task_struct *task;
           struct exec ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ