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.
In reply to Re: Synchronisation between multiple scripts
by BrowserUk
in thread Synchronisation between multiple scripts
by weismat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |