IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

redirect scp (stdout) to file



Question:

How can I "trap" or redirect the stdout results from the scp command to a
file?   The scp works fine and displays to the terminal the files being
transferred, %, size ...etc but I can't get this information into a log
file.

i.e.
scp "source file" "server":"target directory" 2>&1 > script.log

Thanks,
Tom




Home | Main Index | Thread Index | Old Index