As 99% of the Net::Telnet-related questions on list list are prompt
problems, I will ask you to check your prompt. Does it consider "one:" to be
a valid prompt? If not, $telnet->cmd() will not work. Either modify your
prompt or go about it another way (like waitfor()).

Also, use the module's excellent debug facility. It helps with this kind of
problem.


-- 
Mark Thomas                    [EMAIL PROTECTED]
Sr. Internet Architect         User Technology Associates, Inc.

$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
 


> -----Original Message-----
> From: Mark Roles [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, July 26, 2002 6:30 PM
> To: [EMAIL PROTECTED]
> Subject: [Perl-unix-users] Unknown Telnet session Type
> 
> 
> When I try to telnet using Net::Telnet, I get the following error:
> 
> "Type unknown unknown
> 
> Obsolete or generic terminal type: 'dumb'
> Enter new terminal type, or press <return> to accept current one:"
> 
> I tried to add a line;
> 
> "print $telnet->cmd('dumb');"
>    
> or even:
> 
> "print $telnet->cmd('\n');"
> 
> but it does not seem to work. What should I code in the Perl 
> CGI script to force the telnet session to a vt100? Or similar 
> type session? _______________________________________________
> Perl-Unix-Users mailing list [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> 

_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to