diff --git a/src/accountMgr/c_program/sftpSend/sftp.c b/src/accountMgr/c_program/sftpSend/sftp.c index 252649a..d9a4bc6 100644 --- a/src/accountMgr/c_program/sftpSend/sftp.c +++ b/src/accountMgr/c_program/sftpSend/sftp.c @@ -803,6 +803,9 @@ int sendFile(char *remoteip, char *username, char *userpass, char *srcdir, char sprintf(command,"rm -rf /tmp/result%d.txt",fileIndex); system(command); + + sprintf(message,"SendFile()---The result is %d\n",res); + logMessage(message); //printf("SendFile()---The result is %d\n",res); if(res==0) @@ -843,6 +846,8 @@ int sendFile(char *remoteip, char *username, char *userpass, char *srcdir, char } //printf("%s\n",message); sprintf(command,"rm -rf /tmp/temp%d.txt",fileIndex); + sprintf(message,"rm command %s \n",command); + logMessage(message); system(command); return res;