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 reply to Re: Forking and Net::SSH::Perl
by salva
in thread Forking and Net::SSH::Perl
by eff_i_g
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |