Thanks to everybody who replied (too many to mention)
My original question was:
How do I detect when and ftp transfer has finished ??
Obviously (judging by the response) this is something many people have had
to tackle...
The overwhelming majority suggest I use lsof or fuser to discover if a
process (i.e. ftpd) has the file open.
Another suggestion was to send a blank file as a token i.e. file.done from
the pushing end, or for the pushing end to rename the file when complete.
Other suggestions were to check the log files to see if transfer is complete
or to try a different daemon which may have better support for this sort of
detection.
I even got a potted history of the ftp protocol from Dr. Blinn..
I opted to get the pusher to send a "complete" token. works fine
Thanks again to everybody..
Regards
Dave
This e-mail and any attachments hereto are:
-strictly confidential and intended solely for the addressee. If you are
not the intended addressee, you must not disclose, forward, copy or take any
action in reliance on this e-mail or attachments. If you have received this
e-mail in error, please notify NHS Logistics sender as soon as possible.
-not intended to create contractual relations or legal obligations binding
on NHS Logistics and no action may be taken in reliance on this e-mail and
any attachments hereto unless the contents are confirmed by letter.
Addressees should check all attachments for viruses. NHS Logistics makes no
representations as regards the absence of viruses in attachments to this
e-mail.
Received on Thu Dec 06 2001 - 17:23:43 NZDT