ÇëÎÊ£¬ÔõôÔÚÂÛ̳ÇóÖú£¿linuxºÍcygwinµÄ
ÓÐÁ½¶Î´úÂ룺
#!/bin/sh
if [ $#=0 ]
then
echo "Name not provided"
else
echo "You name is $1"
fi
#!/bin/sh
if [ $#=0 ]; then echo "Name not provided"
else echo "You name is $1"
fi
Ãû×ÖΪmypgm1
µÚÒ»¶Î´úÂëÔÚcygwinϲ»ÄÜÕýÈ·ÔËÐÐ
±¨´í£º
mypgm1: line 2: [: missing `]'
mypgm1: line 5: $'\r': command not found
µÚ¶þ¶Î´úÂë¾Í¿ÉÒÔÔËÐÐÁË
µ«ÊÇÁ½¶Î´úÂëÔÚ´¿linuxµÄ»·¾³¶¼ÄÜÔËÐС£
ÇëÎÊÕâÊÇÓï·¨²»¼æÈݵÄÎÊÌâÂð£¿
cygwinµÄÓï·¨ÒªÇóÊÇ·ñ±Èlinux¸üÑϸñ£¿==ÔÚcgywinÏÂÄÜÔËÐеĴúÂëÔÚlinuxÀïÃæÒ»¶¨ÄÜÔËÐУ¬·´Ö®²»È»
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
linuxÖÐselect()º¯Êý·ÖÎö
SelectÔÚSocket±à³ÌÖл¹ÊDZȽÏÖØÒªµÄ£¬¿ÉÊǶÔÓÚ³õѧSocketµÄÈËÀ´Ëµ¶¼²»Ì«°®ÓÃSelectд³ÌÐò£¬ËûÃÇÖ»ÊÇϰ¹ßдÖîÈçconnect¡¢accept¡¢recv»òrecvfromÕâÑùµÄ×èÈû³ÌÐò£¨Ëùν×èÈû·½Ê½block£¬¹ËÃû˼Ò壬¾ÍÊǽø³Ì»òÊÇÏß³ÌÖ´Ðе½ÕâЩº¯Êýʱ±ØÐëµÈ´ýij¸öʼþµÄ·¢Éú£¬Èç¹ûʼþûÓз¢Éú£¬½ø³Ì»òÏ߳̾ͱ»×èÈû£¬º ......
ÿһÖÖ²Ù×÷ϵͳ¶¼ÊÇÓɳÉǧÉÏÍò¸ö²»Í¬ÖÖÀàµÄÎļþËù×é³ÉµÄ¡£ÆäÖÐÓÐϵͳ±¾Éí×Ô´øµÄÎļþ£¬Óû§×Ô¼ºµÄÎļþ£¬»¹Óй²ÏíÎļþµÈµÈ¡£ÎÒÃÇÓÐʱºò¾³£Íü¼Çij·ÝÎļþ·ÅÔÚÓ²ÅÌÖеÄÄĸöµØ·½¡£ÔÚ΢ÈíµÄWINDOWS²Ù×÷ϵͳÖÐÒª²éÕÒÒ»·ÝÎļþÊÇÏ൱¼òµ¥µÄÊÂÇ飬ֻҪÔÚ×ÀÃæÉϵã»÷“¿ªÊ¼”£“ËÑË÷”ÖоÍÄܰ´ÕÕ¸÷ÖÖ·½Ê½ÔÚ ......
·find path -option [ -print ] [ -exec -ok command ] {} \;
#-print ½«²éÕÒµ½µÄÎļþÊä³öµ½±ê×¼Êä³ö
#-exec command {} \; -----½«²éµ½µÄÎļþÖ´ ......
¡¡¡¡1.×÷ÓÃ
¡¡¡¡topÃüÁîÓÃÀ´ÏÔʾִÐÐÖеijÌÐò½ø³Ì£¬Ê¹ÓÃȨÏÞÊÇËùÓÐÓû§¡£
¡¡¡¡2.¸ñʽ
¡¡¡¡top [£] [d delay] [q] [c] [S] [s] [i] [n]
¡¡¡¡3.Ö÷Òª²ÎÊý
¡¡¡¡d£ºÖ¸¶¨¸üеļä¸ô£¬ÒÔÃë¼ÆËã¡£
¡¡¡¡q£ºÃ»ÓÐÈκÎÑӳٵĸüС£Èç¹ûʹÓÃÕßÓг¬¼¶Óû§£¬ÔòtopÃüÁ»áÒÔ×î¸ßµÄÓÅÏÈÐòÖ´ÐС£
¡¡¡¡c£ºÏÔʾ½ø³ÌÍêÕûµÄ ......