good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: how to tell if a file is still being modifiedby monktim (Friar) |
on Sep 16, 2003 at 14:18 UTC ( [id://291826]=note: print w/replies, xml ) | Need Help?? |
Here is another alternative. It may be overkill for what you want to do and it involves more work but maybe its worth considering.
Instead of another FTP process putting the files in your directory, you can run a process to establish a passive mode FTP connection to the FTP server and get the files. WGET is a good utility for this and is freely available by GNU. Then you can run you own FTP server on that same machine and allow access to the directory. On your final destination machine you can again use WGET. This time you can establish a passive mode connection to your FTP server to get the files. Passive mode FTP connections allow you to get files across the network(s) securely. That is, as long as you have good firewall rules and you have good security on your FTP server. Update I jumped the gun. I was wong about WGET not showing the file until it is complete. I tested it with a 100MB file and it got created slowly. The version of WGET I have dumps everything is gets into a single file and then creates the individual files from it. It still creates the individual files slowly and not all at once. My bad.
In Section
Seekers of Perl Wisdom
|
|