in reply to Re: Re: Writing to a file on two different servers
in thread Writing to a file on two different servers

You'll still need some cooperation from the remote server to get the file. You could FTP it, scp it, put it on the web and get it with LWP... There are lots of different ways.

I think what you need to consider first is when is the best time for the configuration file to be transfered; when it changes, or when the scripts run. It may make more sense to distribute the configuration file when it changes, and have the scripts just run on a local copy, so that the script doesn't have to open a remote connection everytime it runs. On the other hand, you might want to avoid changing the file on one server and forgetting to upload it to the other server.

That decision will, of course, influence how this system is implemented.

  • Comment on Re: Re: Re: Writing to a file on two different servers