scp -q isn't quiet between different hosts
Posted
by
pythonic metaphor
on Super User
See other posts from Super User
or by pythonic metaphor
Published on 2012-11-16T21:33:48Z
Indexed on
2012/11/16
23:03 UTC
Read the original article
Hit count: 246
So scp -q file host:file
and scp -q host:file file
are both quiet, i.e. don't give the progress meter. But when I run scp -q host1:file host2:file
, I still get the progress meter as well as a Connection to host1 closed.
message. The progress meter can be gotten rid of by redirected stdout
to /dev/null
(although I'd rather not have to), but the connection closed messages comes on stderr
, which I definitely want to keep in case there's a real error. How can I make scp quiet? Do I have to run ssh host1 "scp -q file host2:file"
?
© Super User or respective owner