Re: How to know when files have finished FTPing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Nov 12, 2007 1:01 AM, Neil Aggarwal <neil@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
Alain Spineux
aspineux gmail com
May the sources be with you
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux