scp output redirection doesn't work...

Jim Knoble jmknoble at pobox.com
Thu Nov 7 06:56:35 EST 2002


Circa 2002-11-06 10:50:50 -0500 dixit Lineberger, Aaron CONT (NETS):

: > OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
: > AIX 4.3.3.0 Maintenance Level 10.
: > 
: > I have run a test on my boxes and found the following:
  [...]
: > scp works fine, but when I tried to redirect stdio/stderr to files they
: > are empty! :(
  [...]
: > I don't have an issue with ssh IO redirection. (yeah I realize they are
: > separate programs. ;)
: > Is there some other way to handle the output from scp or is this a bug?

It's not a bug.  The progress output goes to stderr, but only if stderr
is a terminal.  If stderr is not a terminal, scp acts as if you gave
the '-q' flag.

-- 
jim knoble  |  jmknoble at pobox.com  |  http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
"I am non-refutable."  --Enik the Altrusian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 262 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20021106/09a92af9/attachment.bin 


More information about the openssh-unix-dev mailing list