tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: "Rabjohns, David" <David.Rabjohns () logistics ! nhs ! uk>
To: tru64-unix-managers
Subject: Summary : File processing Question
Date: Thu, 06 Dec 2001 17:09:03 +0000	[thread overview]
Message-ID: <102653644221628.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01C17E78.B4B283E0", Size: 5535 bytes --]

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>Thanks to everybody 
who replied (too many to mention)</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>My original question 
was: </FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>How&nbsp;do 
I&nbsp;detect when and ftp transfer has finished ??</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>Obviously (judging 
by the response) this is something many people have had to 
tackle...</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>The overwhelming 
majority suggest I use lsof or fuser to discover if a process (i.e. ftpd) has 
the file open. </FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>I even got a potted 
history of the ftp protocol from Dr. Blinn..</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>I opted to get the 
pusher to send a "complete" token. works fine</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial size=2>Thanks again to 
everybody..</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial 
size=2>Dave</FONT></SPAN></DIV></BODY></HTML>


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--

                 reply	other threads:[~2001-12-06 17:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox