How to best capture and log scp output?
问题 I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar. screen output: Copying /user2/cdb/builds/tmp/uat/myfiles/* to server /users/myfiles as cdb cdb@server's password: myfile 100% |*****************************| 2503 00:00 log output: Copying /user2/cdb/builds/tmp/uat/myfiles/* to server /users/myfiles as cdb I'd really like to know that my file got there. Here's what I am