[NTLUG:Discuss] How to know when files have finished FTPing?

Thomas Cameron (Red Hat) tcameron at redhat.com
Tue Nov 13 11:15:30 CST 2007


Neil Aggarwal wrote:
> Hello:
> 
> I have a server set up for a client to push files
> onto using FTP.
> 
> I have a cron job to process the files and then
> move them to another directory.
> 
> Sometimes, the cron job executes while the client
> is still uploading the file (Some of them can be large)
> and I get a partial file.
> 
> Is there a way to tell when a file has finished
> uploading?
> 
> I am using CentOS 5 with the vsftpd daemon installed
> using yum.

Transfers don't get logged to /var/log/xferlog until they are completed.
 I used this info to create a script which does exactly what you
describe.  Once the file appears in /var/log/xferlog, it is ready to be
moved.

Hope this helps.
-- 
Thomas Cameron, RHCE, RHCI, CNE, MCSE, MCT
Solutions Architect Team Lead, Red Hat
512-241-0774 office 512-585-5631 cell 512-857-1345 fax



More information about the Discuss mailing list