From: William Crawford Date: 2006-09-08T01:05:11+09:00 Subject: Re: Telnet and 'waitfor' David Corticchiato wrote: > I obtained in the log : > << > Trying 3.249.13.24... > Connected to 3.249.13.24. > > > User Name : >>> > So, 'User Name' is what I wait for. But it crashes. Could it be that it is waiting for a new line character before matching? Maybe using 'Prompt' instead of 'String' will work? Also, it says that it converts the string to a regex anyhow, so why not try setting Match and trying to get it to work that way. Maybe it's trying to make it match the whole line or something when you use 'String'. Just thoughts... I haven't tried to use this yet, and I can't right this moment, unfortunately. -- Posted via http://www.ruby-forum.com/.