Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: edit remote files

by RobPayne (Chaplain)
on Sep 04, 2006 at 18:28 UTC ( #571133=note: print w/replies, xml ) Need Help??

in reply to edit remote files

The number of replies going in different directions seems to indicate that you should take a look at How (Not) To Ask A Question and How do I post a question effectively?.

There are any number of answers to your question, depending upon the requirements that you have and what you are already doing in your script. You could create the file locally, and copy it to the remote machine using ftp, sftp, or scp. You could open a port just for this, accepting the remote file via this port, and then feed the new file contents back over the port to the connecting/authenticating machine. You could copy the remote file to a local temp file, and run some checks/edits of it's contents and then copy it back, or any of the other suggestions that you have received.

Personally, I tend to favor using an existing protocol, such as scp or rsync plus ssh. Whether you just copy a standard file to the remote machine mostly depends upon whether these files are going to have/need local changes made to them.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://571133]
[LanX]: well if you want you can fetch all XML and translate it to another board markup
[moritz]: at this time, a migration could consist of only migrating the rendered HTML of nodes
[moritz]: to a forum software that supports raw HTML input for legacy threads, and uses sane markup for everything else
[holli]: yeah, then vroom will personally stab me in the back at night
[holli]: exactly, moritz
[moritz]: with a big table of redirects to support the old links
[LanX]: do it
[holli]: well if you put some cleverness into the migration you can auto convert most of the links as well
[LanX]: Let's Make PerlMonks Great Again!
[holli]: but you know what? i don't think i'd fancy that. I like PM as it is.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-11-20 19:33 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (292 votes). Check out past polls.