linuxϵÄssh¡¢telnetµÇ¼½Å±¾£¨tcl£©
²Ù×÷ϵͳ£ºlinux£¨feroda4£©
tcl°æ±¾£ºtclsh8.4
expect£º5.43.0
sshµÇ¼½Å±¾
#!/usr/bin/tclsh8.4
package require Expect
set user "root"
set host "10.2.26.30"
spawn ssh $user@$host
expect {
-re "password: $" {exp_send "ÃÜÂë\r"; exp_continue}
}
telnetµÇ¼½Å±¾
#!/usr/bin/tclsh8.4
package require Expect
set user "test"
set host "10.2.26.30"
set port "23"
spawn telnet $host $port
expect {
-re "login: $" {exp_send "$user\r"; exp_continue}
-re "Password: $" {exp_send "testÃÜÂë\r"}
}
PS£º10.2.26.30ΪlinuxÖ÷»ú£¬ÈôµÇ¼ÆäËûÉ豸£¬¸ü¸ÄÆ¥Åä×Ö·û¼´¿É
http://hi.baidu.com/gfshop/blog/item/2b73a000a5528985e950cd8b.html
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,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 ......
ÎÒÃÇÒ»°ãʹÓÓdate -s”ÃüÁîÀ´ÐÞ¸Äϵͳʱ¼ä¡£±ÈÈ罫ϵͳʱ¼äÉ趨³É2009Äê11ÔÂ13ÈÕµÄÃüÁîÈçÏ¡£
#date -s 11/13/09
½«ÏµÍ³Ê±¼äÉ趨³ÉÏÂÎç1µã12·Ö0ÃëµÄÃüÁîÈçÏ¡£
#date -s 13:12:00
---- ×¢Ò⣬ÕâÀï˵µÄÊÇϵͳʱ¼ä£¬ÊÇlinuxÓɲÙ×÷ϵͳά»¤µÄ¡£
---- ÔÚϵͳÆô¶¯Ê±£¬Linux²Ù×÷ϵͳ½«Ê±¼ä´ÓCMOSÖж ......
Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇ飻Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ£»ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£Æձ飻µ«Íò±ä²»
ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓÈжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾Ó¦Óá£
¡¡¡¡
¡¡¡¡ÓëһЩ¼¼ÇÉÏà±È ......
¼ÙÉèÄãÊǼÆËã»ú¿Æ°à³öÉí£¬¼ÆËã»úϵµÄ»ù±¾¿Î³ÌÈçÊý¾Ý½á¹¹¡¢²Ù×÷ϵͳ¡¢Ìåϵ½á¹¹¡¢±àÒëÔÀí¡¢¼ÆËã»úÍøÂçÄãÈ«ÐÞ¹ý
ÎÒÏë´ó¸Å¿ÉÒÔ·ÖΪ4¸ö½×¶Î£¬Ë®Æ½´ÓµÍµ½¸ß
´Ó°²×°Ê¹ÓÃ=>linux³£ÓÃÃüÁî=>linuxϵͳ±à³Ì=>Äں˿ª·¢ÔĶÁÄÚºËÔ´Âë
ÆäÖÐѧϰlinux³£ÓÃÃüÁîʱ¾ÍҪѧ»á×Ô¼º±àÒëÄںˣ¬ÓÅ»¯ÏµÍ³£¬µ÷Õû²ÎÊý
°²×°ºÍ³£ÓÃÃüÁîÊéÌ«¶ ......