Excellent well documented code ! Going a step ahead, what changes are required to this program to make it a (sort of) 'mirror' program ? This means that I want it to automatically copy file from one domain to the other periodically. The 'mirror' process should generally run non-stop, but should initiate the 'mirror-copy' operation only after some specified interval. And is there any way to send an external signal to this process to make it exit it's normal non-stop operation mode (say bring it down for maintenance) ? Typically such functionality is required for the news story files distributed over the WWW.