diff --git a/src/accountMgr/c_program/sftpSend/sftp.c b/src/accountMgr/c_program/sftpSend/sftp.c index f69712a..252649a 100644 --- a/src/accountMgr/c_program/sftpSend/sftp.c +++ b/src/accountMgr/c_program/sftpSend/sftp.c @@ -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