Hi,
  I have written a web based utility that requires to login to several
machines and do some routine tasks
MY script uses Net::Telnet and works fine on most machines
I use the the login() method to login to the servers

The problem comes when the server sometimes has a different prompt
password like

login: ram
Password for ram:

Instead of just "password:" . I can get over this by using waitfor() and
print() but the solution is patchy, because I have to write a seperate
procedure for some hosts.

Can I change login() or write my own generic login()  that would work on
all hosts

Thanks
Ram





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to