DEBUG
This commit is contained in:
@@ -788,6 +788,8 @@ int sendFile(char *remoteip, char *username, char *userpass, char *srcdir, char
|
||||
|
||||
//Use the expect script to send the file by sftp
|
||||
sprintf(command,"expect sendfile %s %s %s %s %s %s 1>/tmp/result%d.txt 2>/dev/null",remoteip,username,userpass,srcdir,filename,desdir,fileIndex);
|
||||
sprintf(message,"command %s \n",command);
|
||||
logMessage(message);
|
||||
system(command);
|
||||
|
||||
//Use the parseResult script to parse the result of sending file
|
||||
|
||||
Reference in New Issue
Block a user