markd has asked for the wisdom of the Perl Monks concerning the following question:
I am having problems writing this in perl expect. I used the following:expect "Password:" #ask user for password and then return to script interact -nobuffer -re "(.*)\r" return
.. but this does not seem to work. I just get another login request like the inputted password is not going to the telnet login. Am I missing something? Can anyone offer any suggestions?$session->expect(60, -re, "Password:"); $session->interact(\*STDIN, "\r");
|
|---|