From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653644221628.tru64-unix-managers.marc@archive.invalid> From: "Rabjohns, David" Date: Thu, 06 Dec 2001 17:09:03 +0000 To: tru64-unix-managers Subject: Summary : File processing Question X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653644221628 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01C17E78.B4B283E0" This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C17E78.B4B283E0 Content-Type: text/plain 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. ------_=_NextPart_001_01C17E78.B4B283E0 Content-Type: text/html Message
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. ------_=_NextPart_001_01C17E78.B4B283E0--