[CentOS] How to know when files have finished FTPing?
aspineux at gmail.com
Mon Nov 12 00:52:40 UTC 2007
On Nov 12, 2007 1:01 AM, Neil Aggarwal <neil at jammconsulting.com> wrote:
> I used lsof and that is working perfectly.
> I called lsof [filename]
> and checked if there was any output.
usually we use a lock file :
if [ ! -f /tmp/uploading ] ; then
... do your stuff ...
rm -f /tmp/uploading
> Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
> Eliminate junk email and reclaim your inbox.
> Visit http://www.spammilter.com for details.
> > An alternative would be to use lsof to see if the file is bein open by
> > the ftpd process. but I never tried this. if this works, I'd like to
> > hear about it.
> CentOS mailing list
> CentOS at centos.org
aspineux gmail com
May the sources be with you
More information about the CentOS