[lug] how to handle open files - upload server
mc at quarter-flash.com
Tue Jan 13 10:23:14 MST 2004
On Tue, Jan 13, 2004 at 09:49:46AM -0700, Nate Duehr wrote:
> The case I'm wondering about: How to detect in that regular cron job if
> the file is open (and probably growing) right at the time because it's
> being uploaded right then... so the cron doesn't attempt to move it to
> the other machine in the middle of an upload.
Here at work we have a similiar situation - we run a tail -f -1
on the ftp log and pipe it through a shell script that decides what
to do next based upon the user doing the transfer.
We could use nfs, but this machine is intentionally network
limited so ftp is about the only way to transfer files on and
off of it.
.--. Ken Weinert Ken.Weinert at ihs.com
||_/ | 303-858-6956 (V) 303-705-4258 (F)
// \ \
(| | ) GnuPG: 9274F1CE GnuPG available at http://www.gnupg.org/
\___)=(___/ 1D87 3720 BB77 4489 A928 79D6 F8EC DD76 9274 F1CE
RAM disk is *not* an installation procedure.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Digital signature
More information about the LUG