From: Jan Svitok Date: 2006-09-07T22:33:40+09:00 Subject: Re: Telnet and 'waitfor' On 9/7/06, David Corticchiato wrote: > Hi, > > by reading the man i understood that 'waitfor' method could be used like > this : > > waitfor(String => 'Name', Timeout => 30) > > But, with that code... : > > > telnet_session = Net::Telnet.new('Host' => @apc_ip) > # @apc_ip is the ip of the host chosen > telnet_session.waitfor(String => 'User Name', Timeout => 30) > > > ...I have a timeout. Is this a syntax problem ? Seems like you have to quote your key names, i.e. 'String', "Timeout".