From: bkincer <dev...@gm...> - 2008-01-28 15:00:19
|
Hello all, I've been banging my head against this problem for a while now and wanted to see if anyone else has any ideas. Any help would be greatly appreciated. So, the problem is this... I'm using the expect module to log into a list of servers, then run through a list of commands. I have a problem expecting the first prompt when I get logged in. And it's only on one certain type of prompt. Due to being such a huge environment, the only thing I can consistently expect in my prompt is my username. If the prompt is this: "username@machine:~> " It won't match the username for some reason. I thought it could be "@" sign, but if i set my prompt to duplicate itself, it matches. ie, "username@machine:~> username@machine:~> " I've tried setting the raw_pty(1) to no avail. FYI, all these machines I am running this on/against are Linux machines. Thank you in advance for any help. -- View this message in context: http://www.nabble.com/problems-matching-first-prompt-upon-ssh-login-tp15136496p15136496.html Sent from the Perl - Expectperl-Discuss mailing list archive at Nabble.com. |