Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Net::OpenSSH premature session termination

by troy99 (Novice)
on Dec 07, 2011 at 13:55 UTC ( #942249=note: print w/ replies, xml ) Need Help??


in reply to Re: Net::OpenSSH premature session termination
in thread Net::OpenSSH premature session termination

Thanks for the reply Salva! Would this be at the SSH session creation time? Or when the threads are reaped? Should the master_exited call be here? As in:

# For Net::OpenSSH need to specify whether to create # pipes or not, default is no pipes. my %opts; $opts{stdin_pipe} = 1; $opts{stdout_pipe} = 1; $opts{stderr_to_stdout} = 1; # Kick off the script on the remote machine ($ssh{'STDIN'}, $ssh{'STDOUT'}, undef, $ssh{'PID'}) = $ssh{'SSH'}->open_ex(\%opts, $script) or die "Error ".$ssh{$host}->error; $ssh{$host}->master_exited()


Comment on Re^2: Net::OpenSSH premature session termination
Select or Download Code
Re^3: Net::OpenSSH premature session termination
by salva (Monsignor) on Dec 07, 2011 at 14:03 UTC
    no, you have to call it from inside the async block.

      Ah, OK, thanks!

        Could you try the development version from GitHub?

        Now, Net::OpenSSH connections should survive finalization of child threads.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2014-04-17 13:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (447 votes), past polls