From: Marco Perl <[EMAIL PROTECTED]> > I use CYGWIN on win-2000 with a ô$ö prompt and run > > my .pl to telnet to a VxWorks station. doing it manually this is what > I follow: > > telnet <return> > > open 144.248.176.132 <return> > > then I get the login prompt which is ôVxWorks Login: ô > > and I enter ômarcoö > > and the ôpassword: ô which I enter ôsystemö > > then I get the vxworks prompt ô-> ô > > here I do a ôpwdö and get the result and then the prompt again. > > Below is my code but does not log me in. > > $ip = '144.248.176.132' ; > > print( "\n- Opening Telnet session to $ip\n" ) ; > > $telnetAte = Net::Telnet -> new( Timeout => 60 ) ; > > $telnetAte -> open( $ip ) ; > > $telnetAte -> waitfor( '/VxWorks login:/' ) ;
A few lines above you said the loing prompt is "VxWorks Login:", with capital L. This could be a problem. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>