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 trying now to no avail:
myscript.sh 2>&1 | tee mylogfile.log
Does anyone have a good way to capture scp output and log it?
Thanks.