Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: -q option in Net::OpenSSH

by kennethk (Abbot)
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
Replies are listed 'Best First'.
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 taking refuge in the Monastery: (8)
As of 2015-07-30 06:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls