From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2008-07-28T18:59:38+09:00 Subject: Re: net-ssh and remote shell 90kts wrote: > For this sort of thing I prefer to use the .exec method and store all > output in an array: > > require 'rubygems' > require 'needle' > require 'net/ssh' > session=Net::SSH.start("localhost", > "90kts", :password=>"**************") > cmd = 'ls -lart' > out = [] > out = session.exec!(cmd).split(/\n/) > puts out > > Hope that helps =) yes fine ! what is the usefullness of "needle" here ? I've installed it, but don't know how to verify net/ssh makes use of it... also, I'm unable to have a command with "cd /some/path" cd is a built-in, i think that's the prob. -- Une B�vue