Skip Menu |

This queue is for tickets about the Net-Telnet CPAN distribution.

Report information
The Basics
Id: 81338
Status: rejected
Priority: 0/
Queue: Net-Telnet

People
Owner: Nobody in particular
Requestors: maorui2k [...] 163.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: customized login prompt
I have a Dell ethernet switch. The login is different from others. Instead of login: or username:, it displays 'User:'. Net::Telnet cannot match it in login function. I suggest adding a new function called login_param (or something else you like :) ) like this: login_param ( Login_prompt => '/User[: ]*$/i', Password_prompt => '/password/i'); If either is set before login, the login function will also match these user specified string. This would give Net::Telnet more compatibility.
Sorry but login() is only meant to handle the general case. There are just too many different ways to login. As the Net::Telnet documentation says: Use a combination of C<print()> and C<waitfor()> as an alternative to C<login()> or C<cmd()> when they don't do what you want.