in reply to Simultaneous SSH sessions with Parallel::ForkManager + Expect
I've never used ForkManager before, but it looks to me like you're getting that error because if $login ne "SUCCESSFUL!", then you never get to $pm->finish; You could change this if you reverse your test...
Try this:
and let me know what happens. :)if $login eq "SUCCESSFUL!" { my $stdout = getOSType(); print "$stdout\n"; }
|
|---|