listing files in remotely with net::ssh?

Discussion in 'Ruby' started by Gian Holland, Oct 18, 2007.

  1. Gian Holland

    Gian Holland Guest

    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
     
    Gian Holland, Oct 18, 2007
    #1
    1. Advertisements

  2. Gian Holland

    Chuck Remes Guest

    On Oct 18, 2007, at 2:42 PM, Gian Holland 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/
     
    Chuck Remes, Oct 19, 2007
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. loial
    Replies:
    0
    Views:
    500
    loial
    Feb 3, 2009
  2. loial
    Replies:
    0
    Views:
    489
    loial
    Feb 10, 2009
  3. Tench Johnson
    Replies:
    1
    Views:
    416
    Biff Tannen
    Apr 23, 2010
  4. salamond

    net/ssh in ruby. ssh.exec fails

    salamond, Feb 17, 2011, in forum: Ruby
    Replies:
    0
    Views:
    370
    salamond
    Feb 17, 2011
  5. Replies:
    0
    Views:
    207
Loading...

Share This Page