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 touch /tmp/uploading ... do your stuff ... rm -f /tmp/uploading fi > > Thanks! > > Neil > > > -- > 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 > http://lists.centos.org/mailman/listinfo/centos > -- Alain Spineux aspineux gmail com May the sources be with you