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

linuxÒ»¸ösleepµÄÆæ¹ÖÎÊÌ⣬¸ßÊÖÀ´¸ø½â´ðÏÂÁË

while(1)
{
    time_t now;
    time(&now);
    struct tm* pt=localtime(&now);
    cout < < "µ±Ç°Ê±¼ä" < < pt->tm_min < < endl;
    if((pt->tm_min)%5 == 0)
    {
        cout < < "ÔÚ" < < pt->tm_min < < "·ÖÖÓ³ÌÐòÖ´ÐÐ" < < endl;
        g_pfile->AnalysisFile(data.c_str());
    }
    #ifdef WIN32
    sleep(60000);
    #else
    sleep(60);
    #endif
}

Õâ¸ö³ÌÐòÖ´Ðнá¹û£º
µ±Ç°Ê±¼ä£º11
µ±Ç°Ê±¼ä£º11
µ±Ç°Ê±¼ä£º12
µ±Ç°Ê±¼ä£º13
¡£¡£¡£

дÕâ¸ö³ÌÐò ÊÇÒ»Ö±ÔËÐеĠ ûÎå·ÖÖÓÖ´ÐÐÒ»´Î
ÿһ·ÖÖÓÅжÏÏÂʱ¼ä

µ«ÊÇΪʲôµÚÒ»´Îsleep£¨60£©Ã»ÓÐÆð×÷Óã¿£¿£¿

Õâ¸öÎÊÌâÈÃÎÒºÜÒÉ»ó£¬ÎÒ·´¸´Ð´´úÂë²âÊÔÁË£¬È·ÊµµÚÒ»´Îsleep£¨£©Ã»Æð×óÓÒ
µÚ¶þ´Îsleep ²Å³É¹¦
¾­²âÊÔ£¬Ã»ÎÊÌâ

struct timespec thd_sleep,tmpsleep;
thd_sleep.tv_sec = 60;
thd_sleep.tv_nsec = 0;
nanosleep(&chThd_sleep,&chTmpsleep);

//=========================
sleep¾Ý˵ÊDz»°²È«µÄ¡£ÓÃÉÏÃæµÄµÄ°É

ѧϰÁË

ÒýÓÃ
¾­²âÊÔ£¬Ã»ÎÊÌâ


ÓеĻú×ÓÓÐÕâ¸öÎÊÌ⣬ËäÈ»²»¶à£¬µ


Ïà¹ØÎÊ´ð£º

php±àдִÐÐlinux shellÃüÁîµÄ´úÂë

ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾­¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......

LinuxÈçºÎÏñwindowsÄÇÑù¸øÎļþ¼ÐÌí¼ÓÓû§

ÎÒµÄÒâ˼ÊÇ£º

ÔÚ²»¸ü¸ÄÔ­À´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§

±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬Ô­À´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔ­À´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......

ͬʱÌṩ windowsϵÄdllºÍ linuxϵÄso Îļþ

ÎÒҪд¸ö·þÎñ¶Ë¡£ ÒªÇóͬʱ֧³Öwindows ºÍ linux Á½¸ö ϵͳ¡£  Ò²¾ÍÊÇҪдһ¸ö dllºÍÒ»¸öso Îļþ¡£ÓÉÓÚÎÒÒ»Ö±¶¼ÊÇÔÚwindsÏÂд³ÌÐò¡£linuxµÄ»¹²»»á¡£ Ïò´ó¼Ò×Éѯ ͬʱ Ö§³Ö dllºÍso  Ó¦¸ÃÔõôд¡£
Óô¿c/c ......

¹ØÓÚLINUXµÄÎÊÌâ--ºÃ¾ÃûÉÏÀ´ÁËûÓзÖÁËÏÈлл´ó¼ÒÁË

ÎÒÔÚLINUXÉÏÓÐÁ½¸öÓû§
Ò» root
¶þ myadmin

¡¾myadmin@localhost~¡¿$ dir
Desktop myphp
[myadminlocalhost~]$ cd myphp¡¢DesktopÄܽøÈ¥ÆäËûµÄϵͳĿ¼½ø²»È¥
Ö»ÓÐÕâÁ½¸öĿ¼ ÎÒÏë½øÈëÆäËûµÄÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ