ÎÒÒª²éÕÒĿ¼/home/riverdream/ϵÄËùÓеģª.CPPÎļþ
int main(int argc, char *argv[])
{
char str[] = "/home/riverdream/";
DIR* pDir = NULL;
struct dirent* ent = NULL;
pDir = opendir(str);
if (NULL ......
ÎÒһ̨serverÖÐÒ»¸öÎļþ¼ÐÖÐÓдóÔ¼2000¸öÎļþ¼Ð£¬ÀïÃ涼ÓдóÁ¿Êý¾Ý£¬ÏÖÔÚÎÒÏë°ÑÆäÖÐÒ»²¿·Ö(´ó¸Å1000¸öÎļþ¼Ð)Òƶ¯µ½Ò»¸öÐÂÎļþ¼ÐÖУ¬Ó¦¸ÃÔõô²Ù×÷¡£Îļþ¼ÐµÄÃüÃûÊÇûÓйæÂɵġ£
ÎÒ³õ²½ÉèÏëÊÇÓÃls -t | head -1000»ñµÃ1000¸öÎļþ¼ÐÃû£¬½Ó×ÅÏë°ÑÕâЩÎļþ¼ÐÃûÊäÈëµ½Ò»¸öÊý×飬ȻºóforÑ»·×ö£¬µ«ÊDz»Öªµ ......
ÓÐÈËÈÏΪ£¬linux °²È«ÐԸߣ¬Ö»ÊÇÒòΪÓõÄÈËÉÙ£¬ËùÒÔÄÇЩºÚ¿Í²»Ô¸ÒâÈ¥¹¥»÷£¬ËùÒÔ²¡¶¾Ö®ÀàµÄ¾ÍÉÙ£¬ÊDz»ÊÇÕâÑù£¿¶øÇÒlinuxÊÇ¿ªÔ´µÄ£¬¹¥»÷ÆðÀ´ ±È½ÏÈÝÒ×ËùÒÔ ÀÁµÄÈ¥¹¥»÷
ÕâÖÖ˵·¨¶Ôô
linux Ôõô¾Í°²È«¸ßÁË
ÈçÄãËù˵¡£
Ñо¿µÄÈ˲»¶à
ÈëÃÅÃż÷¶ù±È½Ï¶à, Æƽ⹤¾ß±È½ÏÉÙ, ²»Ïñ windows ¸÷Ö ......
ÏÖÔÚÓиöÕâÑùµÄÐèÇó,ÎÒµÄoracle¹ý³ÌÒª¶¯Ì¬´´½¨Îļþ(ÎļþÊÇÓÃÀ´µ¼³öÊý¾ÝÓõÄ),ÊÂÏÈÎÒ²»ÖªµÀ¸ÄÎļþÊÇ·ñÒѾ´æÔÚ.ËùÒÔÎÒÏëͨ¹ýpipe¹ÜµÀ¸ølinuxµÄÒ»¸ö½Å±¾·¢ËÍÏûÏ¢,¶ø¸Ã½Å±¾È¡µÃoracle ¹ÜµÀ·¢À´µÄÏûÏ¢(ÊÇÎļþµÄĿ¼) ,½«ÏûÏ¢Öض¨Ïòµ½ÁíÍâÒ»¸öÅжϸÃĿ¼ÊÇ·ñ´æÔڵĽű¾,Èç¹û²»´æÔÚÔò´´½¨Ëü.
ÓÃFIFO..
Èç¹ûÄãµÄlinux½Å±¾Ö´Ðн ......
ÎÒÏÖÔÚÓöµ½µÄÎÊÌâÊÇ :
ÎÒ¿ª·¢µÄʱºòÔÚ WINÏ¿ª·¢µÄ
ÎļþÉÏ´«µÄ¹¦ÄÜûÓÐÎÊÌâ µ«ÊÇÉÏ´«µ½·þÎñÆ÷ÉϾÍʲô·´Ó³Ò²Ã»ÓÐ
²»ÖªµÀÔõô»ØÊÂ?
String TMP_DIR =getServletContext().getRealPath("/")+"jsp/integrate/uploadfile/";
ÕâÊÇÎÒдµÄ·¾¶
²»ÖªµÀ¶Ô²»¶Ô ÌýÈ˼Ò˵linuxÎļþ·¾¶Ð´·¨ÊDz»Ò ......
ÎÒÄ¿Ç°ÔÚ±¾µØµÄlinuxÉÏдÁËÒ»¸öswingµÄ½çÃ棬Ïëͨ¹ýÕâ¸ö½çÃæÀ´¿ØÖÆÆäËüµçÄÔµÄlinuxÖØÆô¡£
ÎÒÖªµÀÓÃRuntime.getRuntime().exec("shutdown -r");¿ÉÒÔ¿ØÖƱ¾»úLinuxÖØÆô£¬µ«ÊÇÔõô¿ØÖÆÔ¶³ÌµÄlinuxÖØÆôÄØ£¿
±ÈÈçÎҵĵØÖ·ÊÇ£º202.115.132.80 ,Ô¶³ÌµÄÊÇ202.115.132.81,¶¼ÔÚ¾ÖÓòÍøÄÚ£¬ÎÒ»¹ÓÐ81µÄrootµÄÕ˺š£ÎÒÏÖÔÚ ......