From: Brian Candler Date: 2010-02-05T18:47:19+09:00 Subject: Re: Some noob questions John Ydil wrote: > Third question : After having the ip address, i need to make an ssh > connection to this address. How can i get a variable to be usable in > system("ssh $variable") ? That would be either system("ssh",variable) # you split the args or system("ssh #{variable}" # shell splits the args But this is probably not what you want, unless you're just using ssh to execute a single command remotely, and you're using RSA keys so you're not going to be prompted for a passwords. Have a look at Net::SSH and Net::SSH::Telnet (the latter wraps Net::SSH in an API which is a drop-in replacement for Net::Telnet) -- Posted via http://www.ruby-forum.com/.