From: John Ydil Date: 2010-02-05T18:59:13+09:00 Subject: Re: Some noob questions Josh Cheek wrote: > On Thu, Feb 4, 2010 at 5:35 AM, Robert Klemme > wrote: > >> >> > The book "Practical Ruby Gems" suggests net-ssh ( > http://gemcutter.org/gems/net-ssh), and has a six page example of a > simple > use program that logs onto a remote server with SSH and uses Vim to edit > a > text file. It also has an example of net-sftp. (though one of those was > outdated, I think the net-sftp version had changed) Thanks for your help but the ssh command was an exemple :p In fact, i need to check routes on a linux router. It's a light linux distribution, i can't install anything. There is ruby 1.8.2 inside that's why i'm learning how to use it. New question ! Thanks to Robert, I have my IP address (Youhou) I need to check the route with this IP address. the linux command is "ip route get {IP address}" so my command is : system("ip route get #{ipaddress}") but the result of this, is just true or false. How can I put the result of my command in a variable ? regards, Ydil -- Posted via http://www.ruby-forum.com/.