Well if you are timing out maybe try to thread it.

$ ruby <<EOF
> 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 <amittomer25 / yahoo.com> 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