[Perl-unix-users] RE: pattern match timeout error using Net::Telnet

2002-04-12 Thread Thomas_M
You don't need to waitfor() the prompt. Just use cmd() and Net::Telnet will automatically stop reading at the prompt. The prompt will not be included in the return value of cmd(). This, of course, assumes you've specified the prompt correctly. If this is your problem, you can use the nice debuggi

Re: [Perl-unix-users] pattern match timeout error using Net::Telnet

2002-04-12 Thread Kenneth Buch
Is there a space after the prompt? Maybe you need $obj->prompt('/C\:\\\>\s$/') If there is a space, then removing the $ would cause the pattern to match. Ken Allegakoen, Justin Devanandan wrote: > Hello all, > > I'm using the Net::Telnet module on a SunOS based > system to run a program th

[Perl-unix-users] pattern match timeout error using Net::Telnet

2002-04-12 Thread Allegakoen, Justin Devanandan
Hello all, I'm using the Net::Telnet module on a SunOS based system to run a program that resides on a Windoze 2k server. By use of the log, I have determined that connection, and login are fine. But I keep getting a pattern match timed-out error. According to the Help, it relates this to matc