Listing files in remotely with net::ssh?

I want to connect to a remote server which I am able to do fine, I
would like to specify a directory and list the contents.

Anyone have any quick and simple solutions to do this or can point me
in the direction of any tutorials?

Thanks

On Oct 18, 2007, at 2:42 PM, Gian H. wrote:

I want to connect to a remote server which I am able to do fine, I
would like to specify a directory and list the contents.

Anyone have any quick and simple solutions to do this or can point me
in the direction of any tutorials?

I would take a look at the gl_tail project [1]. It uses net-ssh
pretty extensively and has lots of code showing how to send commands
as part of your ssh session.

cr

[1] http://www.fudgie.org/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs