Telnet session in ruby

How I can to do a telnet session in ruby. Thank you.

There is a StandardLib ‘Net::Telnet’ which provides a lot of Useful Comands
and Methods =>
look here for example :
http://165.193.123.250/book/lib_network.html

mfg. Jonas Hoffmann

···

Am Sonntag, 5. Januar 2003 20:58 schrieb Panther:

How I can to do a telnet session in ruby. Thank you.

there is a module for this: net::telnet

(from the pickaxe:)

require ‘net/telnet’

tn = Net::Telnet.new({})
tn.login “guest”, “secret”
tn.cmd “somecommand”

···

On Sun, 05 Jan 2003 19:39:10 GMT, “Panther” saspurss@libero.it wrote:

How I can to do a telnet session in ruby. Thank you.