in reply to using Net::SSH::Perl and Expect

Yes, Expect works fine with external SSH processes. Here's a snippet from a recent project:
my $exp = Expect->new; $exp->spawn('sh'); $exp->send( "ssh $host\n" ); $exp->expect(15, 'assword:', '$ ') == 1 or die "Failed at: " . $exp- +>before . " "; $exp->send( $passwd ); ...

Replies are listed 'Best First'.
Re^2: using Net::SSH::Perl and Expect
by jfroebe (Parson) on Nov 09, 2004 at 02:00 UTC

    Yup, but what about with Net::SSH::Perl?

    Jason L. Froebe

    Team Sybase member

    No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1