Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: -q option in Net::OpenSSH

by kennethk (Monsignor)
on May 08, 2012 at 19:25 UTC ( #969527=note: print w/ replies, xml ) Need Help??


in reply to -q option in Net::OpenSSH

So, according to the Net::OpenSSH docs,

quiet => 0

By default, scp is called with the quiet flag -q enabled in order to suppress progress information. This option allows reenabling the progress indication bar.

Is that what you tried? Can you show us your code, so we can replicate?

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re: -q option in Net::OpenSSH
Re^2: -q option in Net::OpenSSH
by web (Initiate) on May 23, 2012 at 17:13 UTC
    First of all, I was using SSH not SCP. And since the "quiet" option only applies to SCP, this suggestion, while appreciated, was not applicable. My code was initially using ssh_opts. I tried applying this as a hash option to $ssh->open2pty() but that did not work. I finally used the suggestion from "salva" to include master_stderr_discard => 1, in the %opts hash on the call to new(). Thanks again.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://969527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-12-26 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (164 votes), past polls