[lug] how to handle open files - upload server
Chip Atkinson
chip at rmpg.org
Tue Jan 13 11:41:12 MST 2004
In a previous job, I did the same thing -- tail the ftp log and go from
there. I that worked well on the solaris machine that I was on. I think
it also covered the possibility of an abort in the middle of uploading a
file.
Chip
On Tue, 13 Jan 2004, Ken Weinert wrote:
> 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.
>
>
More information about the LUG
mailing list