[NTLUG:Discuss] How to know when files have finished FTPing?
Kenneth Loafman
kenneth at loafman.com
Sun Nov 11 15:13:53 CST 2007
Try this:
# lsof -c vsftpd | grep 'upload-file-name'
will tell you if vsftpd has the file open. There are lsof options that
will tell you the reverse info if that's important, i.e. what has 'file'
open, and how its opened.
...Ken
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.
>
> Thanks,
> Neil
>
> --
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details.
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list