Re: Problem with retrieving output from commands using net::telnet

2005-12-21 Thread Stephen Kratzer
Your regexes are probably not doing what you expect them to. You're using character classes, so it's waiting for the device to return a one character prompt that matches any one of the characters from the class. Try something like /password[: ]*$/i and something similar for other prompts. > All

Problem with retrieving output from commands using net::telnet

2005-12-20 Thread Tim Huffman
All, I'm trying to write a perl script that will telnet a device and run one of two commands based on the output from a beginning command. I'm still in the beginning stages of this, and right now I'm simply trying to print the output from the device to standard out. Reading the documentation on Ne