Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Net::OpenSSH::Parallel Options

by atcroft (Abbot)
on Mar 25, 2022 at 22:08 UTC ( [id://11142425]=note: print w/replies, xml ) Need Help??


in reply to Net::OpenSSH::Parallel Options

Are you trying to add them in the Net::OpenSSH::Parallel constructor (my $pssh = Net::OpenSSH::Parallel->new()) call? If so, take a look at the section on the 'add_host' method--specifically, it says, "[A]ny additional option will be passed verbatim to the Net::OpenSSH constructor later." So I suspect the following *MIGHT* work (*UNTESTED*):

my $pssh = Net::OpenSSH::Parallel->new(); $pssh->add_host($_, master_stderr_discard => 1, master_stdout_discard => 1, ) for @hosts;

Hope that helps.

Replies are listed 'Best First'.
Re^2: Net::OpenSSH::Parallel Options
by rgren925 (Beadle) on Mar 25, 2022 at 22:40 UTC

    Wow! Thank you SO much! Don't know how I missed that. I guess that, since the options are passed on the constructor to Net::OpenSSH, I *assumed* (always a bad idea) that it would be the same here.

    It works great!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2025-12-08 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (87 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.