From: Daniel Navarro Date: 2010-10-15T03:49:17+09:00 Subject: Re: How do i provide password for su command while using net/telnet in ruby --0050450159cfab9a1e0492982a46 Content-Type: text/plain; charset=ISO-8859-1 Well if you are timing out maybe try to thread it. $ ruby < thread = Thread.new { `sleep 5; echo \"Done.\"` } > puts "Waiting on telnet to catch it's slow ass up." > puts thread.value > EOF Waiting on the thread... Done. On Thu, Oct 14, 2010 at 5:46 AM, Amit Tomar wrote: > Ryan Davis wrote in post #950107: > > On Oct 14, 2010, at 03:22 , Amit Tomar wrote: > > > >> Am using Net/TELNET to connect to remote host trying to run su > >> command in order to get root privilage this is how i doing > > > > Please tell me/us that this isn't across an unsecured network. > > Otherwise, you should switch from telnet to ssh. > > Network security is not an issue for me and i just want to make su > command to work > > -- > Posted via http://www.ruby-forum.com/. > > -- Daniel Navarro 9035612340 --0050450159cfab9a1e0492982a46--