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. <
scp myfile user@host.com:. && echo success!
is very helpful but to write the message to a log file I changed it like this
scp myfile user@host.com:. && echo myfile successfully copied! >> logfile 2>&1
and this will write "myfile successfully copied!" message to the log file.