Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: -q option in Net::OpenSSH

by salva (Abbot)
on May 08, 2012 at 21:04 UTC ( #969534=note: print w/ replies, xml ) Need Help??


in reply to -q option in Net::OpenSSH

You can use master_opts to pass options to the master SSH connection or just master_stderr_discard to get its output redirected to /dev/null.


Comment on Re: -q option in Net::OpenSSH
Select or Download Code
Re^2: -q option in Net::OpenSSH
by web (Initiate) on May 23, 2012 at 17:15 UTC
    Thanks! This was the solution. I used the %opts has on my call to new() and included master_stderr_discard => 1, inside that hash which I was already using for "user" and "password". Thanks again. You Monks rock! *grin*
      Is there a way to combine
      master_opts => [-o => "StrictHostKeyChecking=no", ], master_stderr_dis +card => 1
      in one %opts ? Thanks.
        got it to work with:
        my %opts = (master_opts => [-o => "StrictHostKeyChecking=no"],master_s +tderr_discard => 1);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (18)
As of 2015-07-06 20:26 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 (83 votes), past polls