in reply to Synchronisation between multiple scripts
Create a daemon to handle the connections and transfers, that opens a local socket and accepts the paths of files to be transferred.
Have it copy or move the files into a private directory when the transfer request is made and delete once it is complete. If the deamon dies, it know what needs to be done when it re-starts.
It can either maintain an open connection to the remote host, or only establish the connection when there are transfers to be done.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Synchronisation between multiple scripts
by weismat (Friar) on Jan 16, 2009 at 10:52 UTC | |
by JavaFan (Canon) on Jan 16, 2009 at 11:38 UTC |