in reply to Net::Telnet, $, and crushed expectations

You didn't say which client/host systems you tried this on, so I've just tried it running on an AIX, connecting to a HP-UX 11 machine (happened to have those handy). Using v5.6.1, and Net::Telnet 3.02, I get different results to you:

jer@skiddaw: ~/perl > ./testelnet.perl $stuff jer@volvo: ~ read timed-out at ./testelnet.perl line 17 zsh: exit 255 ./testelnet.perl
with the getlines in the code, and without them:
jer@skiddaw: ~/perl > ./testelnet.perl $stuff jer@volvo: ~ $stuff jer@volvo: ~ jer@volvo: ~
Same result Linux->HP-UX, I cant test ->Linux or ->AIX (one hasnt a telnet server, the other some weird login prompt ,)

Which version of Net::Telnet are you using, possibly its an older/buggy one? My log and my results show that it can work, at least.

C.

Replies are listed 'Best First'.
Re: Re: Net::Telnet, $, and crushed expectations
by jcpunk (Friar) on Jul 01, 2003 at 14:13 UTC
    i am currently testing Linux -> Solaris and the final program will likely run Solaris -> Solaris
    as for perl i am using 5.8.0 and i cannot determine my version of Net::Telnet.
    thanks for testing that code out, Solaris is probably being itself, foolish and annoyingly stupid
    jcpunk

    by the way thanks for all the help that was, is, and will be