From: Rodrigo Bermejo Date: 2007-01-09T05:36:23+09:00 Subject: Re: Getting the result of a command with Net::Telnet Ronald Fischer wrote: > Please have a look at the following simple Ruby statement (tn is > a Net::Telnet object): > > tn.login(....) > tn.cmd({'String' => 'uname -n', 'Match' => /root@sb.*# */}) { > puts "string received:" > puts str > } tn.login(....) str = tn.cmd('uname -n').chop p str Does it works for you ? -- Posted via http://www.ruby-forum.com/.