This commit is contained in:
lai
2024-12-18 17:52:16 +08:00
parent 230812d6e1
commit a1c7b3d2dd

View File

@@ -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