ÔÚC#ÀïÔõôʵÏÖ£ºwindows·ÃÎÊ(¶ÁÈ¡)linuxÉϵÄÎļþ£¿
ÀûÓÃpsftp.exe¿ÉÒÔÔÚdos½çÃæÏ£¬ÊµÏÖlinuxÎļþµÄÉÏ´«ºÍÏÂÔØ¡£
»¹¿ÉÒÔͨ¹ýµ÷ÓÃProcessµÄÃüÁʽ£¬ÊµÏÖÉÏ´«Îļþµ½linuxÉÏ,
µ«ÊÇʵÏÖÎļþÏÂÔØµ½windowsʱ£¬¾Í²»ÐС£ÏÂÃæÊÇÏÂÔØÊ±µÄÔ´´úÂë
¶øÍ¬ÑùµÄuploadʱ£¬ÊÇ¿ÉÒԵ쬲»ÖªµÀΪʲô»áÕâÑù£º
#region Download
// Upload the files
// output of the plugin during its running in console
public string Download()
¡¡¡¡ {
¡¡¡¡ string outPutMessage = "";
¡¡¡¡ string scriptLocation = "";
//Create Script File
¡¡¡¡ scriptLocation = this.CreateScriptFile();
¡¡¡¡
¡¡¡¡ //Run the Upload event
¡¡¡¡ ProcessStartInfo processInfo = new ProcessStartInfo();
¡¡¡¡ //Set the Shell Command(the plugins' path)
¡¡¡¡ processInfo.FileName = this.m_ShellCommand;
¡¡¡¡ //Don't show console window
¡¡¡¡ processInfo.CreateNoWindow = true;
¡¡¡¡ //don't use shell to execute this script
¡¡¡¡
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í
2009-09-29 14:56:20,801 [org.apache.struts2.interceptor.FileUploadInterceptor]-[ERROR] Processing of multipart/form-data request failed. c:/temp/upload__1dcd07ee_12 ......
ÎÒÔÚLINUXÉÏÓÐÁ½¸öÓû§
Ò» root
¶þ myadmin
¡¾myadmin@localhost~¡¿$ dir
Desktop myphp
[myadminlocalhost~]$ cd myphp¡¢DesktopÄܽøÈ¥ÆäËûµÄϵͳĿ¼½ø²»È¥
Ö»ÓÐÕâÁ½¸öĿ¼ ÎÒÏë½øÈëÆäËûµÄÏ ......
¸÷λ´óϺ£¬ÎÒÕýÔÚѧϰLinux£¬¿ÉÊÇLinuxͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»Óöµ½À§ÄÑ£¬ÔÚÃüÁîÐÐÏÂÊäÈëstartx£¬²»ÊǽøÈëͼÐνçÃæ
¶øÊdzöÏÖ
ÇëÎʸ÷룬ÕâÊÇΪʲô£¿ ¶øÇÒ°´Ctrl+Alt+F7£¬Ò²²»ÄÜÃüÁîÐнøÈëͼÐνçÃæ¡£&nbs ......
ÎÒÕâÀïÓÐÒ»¸öµÇ½WIFIÍøÂçµÄÒ³Ãæ¡£ÓÉÓÚWIFI¾³£¶ÏÏߣ¬ËùÒÔÒª·´¸´µØÔÚÕâ¸öÍøÒ³Éϵǽ£¬Ã»·¨ÎÞÈËÖµÊØ¡£
ËùÒÔ£¬ÎÒÏë×öÒ»¸öC#³ÌÐò£¬·ÅÒ»¸öwebbrowser¿Ø¼þ£¬×Ô¶¯Ìî±í²¢×Ô¶¯µã»÷Ìá½»°´Å¥¡£
ÎÊÌâÒ»£º
»ù±¾ÕÕÍøÉÏÕҵijÌÐò ......