From a1c7b3d2dd30aa041e005ca5a119edc0f571ab26 Mon Sep 17 00:00:00 2001 From: lai <10633968+laiyujun1@user.noreply.gitee.com> Date: Wed, 18 Dec 2024 17:52:16 +0800 Subject: [PATCH] DEBUG --- src/accountMgr/c_program/sftpSend/sftp.c | 2 ++ 1 file changed, 2 insertions(+) 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