listing files in remotely with net::ssh?

G

Gian Holland

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
 
C

Chuck Remes

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top