On 12/7/12 1:50 AM, franckm wrote:
Dennis Peterson wrote:
That is a functionality of the desktop, no? There are command line tools
as well. Inode cron will do this. If you're not in a hurry and
understand the risks of non-atomic file transfers you can do this with
cron. Here's a link to incron:
http://www.cyberciti.biz/faq/linux-inotify-examples-to-replicate-directories/
dp
I'm in a hurry
Cannot process the file until it's cleared.
It's got to pick up the file as soon as it's arrived.
You can't usefully pick up the file until it has *finished* arriving.
You can sometimes move it to another directory within the same disk
partition while it is still arriving and it will continue to arrive, but
if you do much else you will get an unlinked file that you can no longer
see but will continue to grow. Once ftp has finished with it it will
disappear off your system. Rather like Alice's Cheshire cat without the
smile. It is worth studying a bit about atomic file operations to get
your head around this.
This isn't the right list to discuss this but get a copy of inotify and
incrond. You can do what you wish with that, safely.
dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml