From: Ryan Davis Date: 2012-06-07T10:28:04+09:00 Subject: Re: Send commands to Telnet.exe On Jun 6, 2012, at 16:31 , Prajwal Kumar wrote: > Marc Heiler wrote in post #1062746: >> Possibly via Popen? >> >> http://www.ruby-doc.org/core-1.9.3/IO.html#method-c-popen >> >> Or Kernel exec. > > Thanks Marc!!! > > I tried the below code: > > f = IO.popen("C:/WINDOWS/system32/telnet.exe") > puts "Parent is #{Process.pid}" > > Its opening the Telnet.exe, but how will send and receive commands on > the opened Telnet? Marc gave you exactly what you need to move forward. At some point in time, you're going to need to actually learn ruby. I suggest finding a book or online resource that works for you and reading it. Twice.