Open a remote file and edit it

Discussion in 'Ruby' started by Paul Donaghy, Jul 5, 2008.

  1. Paul Donaghy

    Paul Donaghy Guest

    Guys i want to open a file on another machine lets say test.txt, read it
    find (grep) for example the text "localhost" and replace it with a
    machine name and then close the file. I can connect to the machine using
    ssh or sftp but as far editing a file I'm not sure how to.

    Any help much appreciated.
    --
    Posted via http://www.ruby-forum.com/.
     
    Paul Donaghy, Jul 5, 2008
    #1
    1. Advertising

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. San Diego Guy
    Replies:
    0
    Views:
    571
    San Diego Guy
    Aug 7, 2003
  2. Schultz
    Replies:
    3
    Views:
    582
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,372
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  4. Sharon McCarty
    Replies:
    0
    Views:
    273
    Sharon McCarty
    Nov 24, 2004
  5. Dayton Jones

    Remote.pm (File::Remote) problem

    Dayton Jones, Mar 1, 2006, in forum: Perl Misc
    Replies:
    9
    Views:
    213
    Dayton Jones
    Mar 3, 2006
Loading...

Share This Page