When I manually sftp a file to a remote server I get the following output on the screen;
Uploading filename to /inbound/xxxxxxx_Folder_1/filename
filename 100% 50 0.1KB/s 00:00
When I run the commands from within a shell script I do not get the "filename 100% 50 0.1KB/s 00:00" information in my logfile. This is valuble information, % transfered and bytes transfered.
Here is the command I am running from within my shell script:
sftp -vv -b $SFTPJOB -oIdentityFile=$KEYPATH/$KEYFILE `/bin/cat $KEYPATH/$CUSTOMER/$AUTHFILE`@$HOST >> $logfile 1>&1
How can I get the output "filename 100% 50 0.1KB/s 00:00" into my logfile when running the command in my shell script.
Moderator's Comments:
|
|
Double post. Continue here
|
|