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

·¢¸öÔÚlinuxÏÂÓÃpythonÐ´ÊØ»¤½ø³ÌµÄºÃ¶«¶«£¨×ª£©

 Ò»¸ö±ðÈËдµÄÄ£¿é£¬¿ÉÒÔÖ±½ÓÓÃÀ´°ÑÒ»¸öÆÕͨ½ø³Ì¸ÄÎªÊØ»¤½ø³Ì¡£
²¢ÇÒ×Ô¶¯°Ñ±ê×¼Êä³öÖØ¶¨Ïòµ½ÈÕÖ¾Îļþ£¬ºÜʵÓð¡¡£
view plaincopy to clipboardprint?
<BR>   
'''''<BR>  
    This module is used to fork the current process into a daemon.<BR>  
    Almost none of this is necessary (or advisable) if your daemon <BR>  
    is being started by inetd. In that case, stdin, stdout and stderr are <BR>  
    all set up for you to refer to the network connection, and the fork()s <BR>  
    and session manipulation should not be done (to avoid confusing inetd). <BR>  
    Only the chdir() and umask() steps remain as useful.<BR>  
    References:<BR>  
        UNIX Programming FAQ<BR>  
            1.7 How do I get my program to act like a daemon?<BR>  
                [url]http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16[/url]<BR>  
        Advanced Programming in the Unix Environment<BR>  
            W. Richard Stevens, 1992, Addison-Wesley, ISBN 0-2


Ïà¹ØÎĵµ£º

linux ¹ÜÀíÃüÁî Ö® ¼àÊÓϵͳ

1.¼àÊÓÄÚ´æ
free -mt
             total       used       free     shared    buffers     cached
Mem:     ......

LinuxÏÂSUNµÄJREÎÊÌâÈÕÖ¾ÊÕ¼¯

LinuxÏÂSUNµÄJREÎÊÌâÈÕÖ¾ÊÕ¼¯
ÔÚLinuxÏÂʹÓÃSunÌṩµÄJRE£¬µ±·¢Éúcore dumpʱ£¬Èç¹ûÈ·ÈÏÊÇÓÉJREÔì³ÉµÄ£¬Sunͨ³£ÐèÒªÄãÌṩÈÕÖ¾ÒÔ¹©·ÖÎö¡£
ͨ³£ÊÇͨ¹ýÖ´ÐÐpkgapp½Å±¾À´ÊÕ¼¯¡£¸Ã½Å±¾¿ÉÔÚsunÍøÕ¾ÉÏÏÂÔØ£¬Ãû×ÖΪSUN-GDD_pkgapp_linux_redhat.tar.gz¡£
pkgapp¹¤¾ßÐèÒªkshµÄÖ§³Ö£¬Òò´ËÈç¹ûLinuxÉÏûÓа´ÕÕksh£¬±ØÐëÏȰ²×°²Å¿É¡ ......

Ó²Å̰²×°linux rhel 5 ³¬¼¶¼òµ¥

Ê×ÏÈÏÂÔØÒ»¸ögrubfordos£¬´ÓÕâÀïϾÍÊÇÁË£¬http://download.csdn.net/source/1326121
ºÜСµÄ£¬²Å190k×óÓÒ£¬Ö±½Ó·ÅÖÃÔÚcÅÌ£¬È»ºó£¬´ò¿ªcÅÌ£¬ÔÚÎļþ¼ÐÑ¡ÏîÀïÃæ£¬°ÑϵͳÒþ²ØÑ¡Ïî´ò¿ª£¬ÏµÍ³±£»¤ÎļþÒ²´ò¿ª£¬¾Í¿ÉÒÔ¿´µ½Ò»¸öboot.iniÎļþ£¬ÔÚboot.iniÀïÃæÌí¼ÓÒ»C£º\grldr="grub for dos"
OK ¡£
Æô¶¯Ã»ÓÐÎÊÌâÁË¡£
°ÑlinuxµÄ°²× ......

linuxÖÐfork£¨£©º¯ÊýÏê½â

 Ò»¡¢forkÈëÃÅ֪ʶ
     ÏÈ¿´Ò»¸öÀý×Ó£º
/*
* fork_test.c
* version 1
* Created on: 2010-5-29
* Author: wangth
*/
#include <unistd.h>;
#include <stdio.h>
int main ()
{
pid_t fpid; //fpid±íʾforkº¯Êý·µ»ØµÄÖµ
//´Ëʱ½öÓÐÒ»¸ö½ ......

Pythonѧϰ֮OS¿â

OS¿âÌṩÁËʹÓø÷ÖÖ²Ù×÷ϵͳ¹¦ÄܵĽӿڡ£
os.name ·µ»Øµ±Ç°²Ù×÷ϵͳÃû£¬¶¨ÒåÁË'posix'£¬'nt'£¬'mac'£¬'os2'£¬'ce'£¬'java'£¨ÎÒʹÓÃwin7/python3.1,Êä³öµÄÊÇnt¡£posix²»ÖªµÀÊÇʲôϵͳ£¬macÓ¦¸ÃÊÇApple»ú°É£¬os2Ò²²»ÖªµÀÊÇʲô¶«¶«£¬ceÓ¦¸ÃÊÇwinCE°É£¬ÕâÑùµÄ»°£¬pythonÓ¦¸ÃÖ§³ÖÏòCEÒÆÖ²°¡£¬Å¼×Ô¼ºÊÔ¹ý£¬Ã»±àÒë³É¹¦£¬java¹À¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ