Unfortunatly SCP requires output be to /dev/tty and not standard output. As such, you would have to capture that device output either in a script, screen session option, or by running something like:
SSH:
script -a output_file -c "scp /path/file 192.168.1.1:/path/newfile"
You could also try using RSYNC, and piping as per the usual “>>”.
Comments (0)
No comments yet! Why not write the first?
Post a comment