in reply to Problem with Net::SSH::Expect on unavailable hosts
You may also want to look at the exp_debug and log_stdout options.my $ssh = Net::SSH::Expect->new ( host => "$current_server", user => "$user", raw_pty => 1, timeout => 5 ); # test the login eval { $login_output = $ssh->run_ssh(); }; # I've tried to capture $@ or $! here but it never gives me an +ything useful ($ssh->read_all(2) =~ />\s*|$\s*\z/) or die "where's the remot +e prompt?"; $ssh->exec("stty raw -echo");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with Net::SSH::Expect on unavailable hosts
by mr_mischief (Monsignor) on Jul 01, 2009 at 20:47 UTC | |
by jrsimmon (Hermit) on Jul 01, 2009 at 21:11 UTC | |
by mr_mischief (Monsignor) on Jul 01, 2009 at 21:30 UTC | |
by jrsimmon (Hermit) on Jul 01, 2009 at 22:14 UTC | |
by sierpinski (Chaplain) on Jul 02, 2009 at 13:18 UTC | |
by jrsimmon (Hermit) on Jul 02, 2009 at 13:58 UTC | |
by sierpinski (Chaplain) on Jul 02, 2009 at 14:48 UTC | |
|