go ahead... be a heretic | |
PerlMonks |
Re: Problem with Net::SSH::Perl and threadsby McD (Chaplain) |
on Nov 24, 2008 at 22:23 UTC ( [id://725716]=note: print w/replies, xml ) | Need Help?? |
I've recently had good luck with Net::SSH::Perl using forked children, rather than threads. If it's early enough in your design, and you're on a flavor of unix, consider forking rather than threading. (I know threads are more popular than forks these days, but unix is actually quite good at forking.)
I used socketpair() and IO::Select to manage IPC with the kids. Works great.
In Section
Seekers of Perl Wisdom
|
|