1754385 Members
3016 Online
108813 Solutions
New Discussion

stdout for scp

 
Jacques Carriere
Regular Advisor

stdout for scp

How can I capture stdout from scp.

#scp j1 svr1:/tmp >j2 doesn't work

Jacques
1 REPLY 1
Jeff_Traigle
Honored Contributor

Re: stdout for scp

What are you expecting to see on stdout? With that basic scp command, the only thing I'd expect to see is any notice in /etc/issue (if sshd has the Banner paarameter defined as such). That is not displayed in stdout, however. It is displayed on stderr. So, if that's what you're aiming for, change your command to:

scp j1 svr1:/tmp 2> j2
--
Jeff Traigle