|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: Forking and Net::SSH::Perlby salva (Canon) |
| on Apr 05, 2011 at 08:29 UTC ( [id://897456]=note: print w/replies, xml ) | Need Help?? |
|
You can not share an Net::SSH::Perl connection between different processes. It just doesn't work.
You have to open a new connection from every child. If that slows down your script too much, reimplement it using a workers+queue aproach. And BTW, you can get OpenSSH packed for Solaris from Sunfreeware. Net::OpenSSH does support sharing the SSH connection with child processes.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||