in reply to Problem with IO::Pty and sshing with Net::Telnet and pseudo-terminals

Did you only move the code to a new machine, or did you also make some change to the machine to which the code connects? Since you're matching a particular prompt and blocking on that, if the prompt no longer matches you'll block forever or timeout.

I'm curious why you're using Net::Telnet with a command-line ssh rather than using Net::SSH, but if it's been working then there's probably a way to fix it so that it works again.

  • Comment on Re: Problem with IO::Pty and sshing with Net::Telnet and pseudo-terminals