From: David Corticchiato Date: 2006-09-08T17:10:11+09:00 Subject: Re: Telnet and 'waitfor' Thanks everybody for your help. One by one : Guy, I didn't understand what you mean, sorry. William, if it is waiting for a new line character, there is a real problem with waitfor. In the doc they don't say that. Tim, You're right i can do it without Ruby, but my work isn't to reboot only so I want to do that with Ruby for learning how to do. Paul, you're code can't work with me because you use : session.login("username","password") 'login', by default wait for the prompt "login". But my prompt is "User Name", So that doesn't work. For the regex i tried /^User Name$/ but that doesn't work too, do you have another idea ? -- Posted via http://www.ruby-forum.com/.