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

Linux ¼¼ÇÉ£ºÈýø³ÌÔÚºǫ́¿É¿¿ÔËÐеļ¸ÖÖ·½·¨

ÏëÈýø³ÌÔڶϿªÁ¬½ÓºóÒÀÈ»±£³ÖÔËÐУ¿Èç¹û¸Ã½ø³ÌÒѾ­¿ªÊ¼ÔËÐÐÁ˸ÃÈçºÎ²¹¾È£¿ Èç¹ûÓдóÁ¿ÕâÀàÐèÇóÈçºÎ¼ò»¯²Ù×÷£¿
ÎÒÃǾ­³£»áÅöµ½ÕâÑùµÄÎÊÌ⣬Óà telnet/ssh µÇ¼ÁËÔ¶³ÌµÄ Linux ·þÎñÆ÷£¬ÔËÐÐÁËһЩºÄʱ½Ï³¤µÄÈÎÎñ£¬ ½á¹ûÈ´ÓÉÓÚÍøÂçµÄ²»Îȶ¨µ¼ÖÂÈÎÎñÖÐ;ʧ°Ü¡£ÈçºÎÈÃÃüÁîÌá½»ºó²»Êܱ¾µØ¹Ø±ÕÖն˴°¿Ú/ÍøÂç¶Ï¿ªÁ¬½ÓµÄ¸ÉÈÅÄØ£¿ÏÂÃæ¾ÙÁËһЩÀý×Ó£¬ Äú¿ÉÒÔÕë¶Ô²»Í¬µÄ³¡¾°Ñ¡Ôñ²»Í¬µÄ·½Ê½À´´¦ÀíÕâ¸öÎÊÌâ¡£
nohup/setsid/&
³¡¾°£º
Èç¹ûÖ»ÊÇÁÙʱÓÐÒ»¸öÃüÁîÐèÒª³¤Ê±¼äÔËÐУ¬Ê²Ã´·½·¨ÄÜ×î¼ò±ãµÄ±£Ö¤ËüÔÚºǫ́Îȶ¨ÔËÐÐÄØ£¿
hangup Ãû³ÆµÄÀ´ÓÉ
ÔÚ Unix µÄÔçÆÚ°æ±¾ÖУ¬Ã¿¸öÖն˶¼»áͨ¹ý modem ºÍϵͳͨѶ¡£µ±Óû§ logout ʱ£¬modem ¾Í»á¹Ò¶Ï£¨hang up£©µç»°¡£ ͬÀí£¬µ± modem ¶Ï¿ªÁ¬½Óʱ£¬¾Í»á¸øÖն˷¢ËÍ hangup ÐźÅÀ´Í¨ÖªÆä¹Ø±ÕËùÓÐ×Ó½ø³Ì¡£
½â¾ö·½·¨£º
ÎÒÃÇÖªµÀ£¬µ±Óû§×¢Ïú£¨logout£©»òÕßÍøÂç¶Ï¿ªÊ±£¬Öն˻áÊÕµ½ HUP£¨hangup£©ÐźŴӶø¹Ø±ÕÆäËùÓÐ×Ó½ø³Ì¡£Òò´Ë£¬ÎÒÃǵĽâ¾ö°ì·¨¾ÍÓÐÁ½ÖÖ;¾¶£ºÒªÃ´Èýø³ÌºöÂÔ HUP Ðźţ¬ÒªÃ´Èýø³ÌÔËÐÐÔÚеĻỰÀï´Ó¶ø³ÉΪ²»ÊôÓÚ´ËÖն˵Ä×Ó½ø³Ì¡£
1. nohup
nohup ÎÞÒÉÊÇÎÒÃÇÊ×ÏÈÏëµ½µÄ°ì·¨¡£¹ËÃû˼Ò壬nohup µÄÓÃ;¾ÍÊÇÈÃÌá½»µÄÃüÁîºöÂÔ hangup Ðźš£ÈÃÎÒÃÇÏÈÀ´¿´Ò»Ï nohup µÄ°ïÖúÐÅÏ¢£º
NOHUP(1) User Commands NOHUP(1)
NAME
nohup - run a command immune to hangups, with output to a non-tty
SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION
DESCRIPTION
Run COMMAND, ignoring hangup signals.
--help display this help and exit
--version
output version information and exit
¿É¼û£¬nohup µÄʹÓÃÊÇÊ®·Ö·½±ãµÄ£¬Ö»ÐèÔÚÒª´¦ÀíµÄÃüÁîÇ°¼ÓÉÏ nohup ¼´¿É£¬±ê×¼Êä³öºÍ±ê×¼´íÎóȱʡ»á±»Öض¨Ïòµ½ nohup.out ÎļþÖС£Ò»°ãÎÒÃÇ¿ÉÔÚ½áβ¼ÓÉÏ"&"À´½«ÃüÁîͬʱ·ÅÈëºǫ́ÔËÐУ¬Ò²¿ÉÓÃ">filename 2>&1"À´¸ü¸ÄȱʡµÄÖض¨ÏòÎļþÃû¡£
nohup ʾÀý

[root@pvcent107 ~]# nohup ping www.ibm.com &
[1] 3059
nohup: appending output to `nohup.out'
[root@pvcent107 ~]# ps -ef |grep 3059
root 3059 984 0 21:06 pts/3 00:00:00 ping www.ibm.com
root 3067 984 0 21:06 pts/3 00:00:00 grep 3059
[root@pvcent107 ~]#
2¡£setsid


Ïà¹ØÎĵµ£º

LinuxÖÐÎļþ¼ÐµÄ½â¶Á

[/b][url]http://blog.chinaunix.net/u3/95713/showart_1931142.html[/url]
Linux¸ù¾Ý°æ±¾µÄ²»Í¬, ÎļþµÄ×éÖ¯½á¹¹µ±È»»áÓÐËù²î±ð,µ«Ö÷ÒªµÄÎļþ¼ÐÓ¦¸ÃÊÇÒ»ÑùµÄ,Á˽âÕâЩÎļþ¼ÐµÄº¬Òå,¶ÔÓÚÁ˽âLinuxÓÐ×ÅÖØÒªµÄÒâÒå.

1, /  LinuxÎļþϵͳµÄÈë¿Ú£¬Ò²ÊÇ´¦ÓÚ×î¸ßÒ»¼¶µÄĿ¼£»
2, /bin ϵͳËùÐèÒªµÄÄÇЩÃüÁîλÓÚ´Ë ......

linux ¶¯Ì¬Á´½Ó¿â¼ÓÔØ

Linux ¶¯Ì¬Á´½Ó
Linux ÖеÄÓ¦ÓóÌÐòÒÔÒÔÏÂÁ½ÖÖ·½Ê½Ö®Ò»Á´½Óµ½Íⲿº¯Êý£ºÒªÃ´ÔÚ¹¹½¨Ê±Ó뾲̬¿â£¨ lib*.a £© ¾²Ì¬µØÁ´½Ó£¬²¢ÇÒ½«¿â´úÂë°üº¬ÔÚ¸ÃÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÎļþÀҪôÔÚÔËÐÐʱÓë¹²Ïí¿â£¨ lib*.so £© ¶¯Ì¬µØÁ´½Ó¡£Í¨¹ý¶¯Ì¬Á´½Ó×°ÈëÆ÷£¬½«¶¯Ì¬¿âÓ³Éä½øÓ¦ÓóÌÐòµÄ¿ÉÖ´ÐÐÄÚ´æÖС£ÔÚÆô¶¯Ó¦ÓóÌÐò֮ǰ£¬¶¯Ì¬Á´½Ó×°ÈëÆ÷½«ËùÐ ......

LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö

 
À´×Ô£ºhttp://www.linuxsir.org/main/?q=node/137#1.2
ÕªÒª£º ±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
Ò»¡¢find ÃüÁî¸ñʽ
1¡¢findÃüÁîµÄÒ»°ã ......

CentOS5.4 LinuxÏÂModbus TCP IPЭÒéC++µÄÒ»¸öСÀý×Ó

///////////////////////////////////////////////////////////////////////////
/*
ReadCoilsº¯Êý£º
¶Á¼ÌµçÆ÷µÄ״̬ £¬ ³É¹¦·µ»Øture¡£
send Êý¾Ý³¤¶È=12
recv Êý¾Ý³¤¶È=10
unsigned short int addr ¶Á¼ÌµçÆ÷µÄÆðʼµØÖ·(¼ÌµçÆ÷±àºÅ-1) ¡£
×¢Ò⣺1~8¸ö¼ÌµçÆ÷£¬ÆðʼµØÖ·´Ó0¿ªÊ¼
unsigned short int len ......

linuxÖнӿÚÉèÖ÷½·¨

linuxÖнӿÚÉèÖ÷½·¨
Ò»¡¢           ÉèÖýӿÚipµØÖ·
1.      ipv4µØÖ·
1)        ²é¿´½Ó¿ÚÅäÖÃ
ÃüÁ
ifconfig            ²é¿´ËùÓнӿڵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ