* Summary : File processing Question
@ 2001-12-06 17:09 Rabjohns, David
0 siblings, 0 replies; only message in thread
From: Rabjohns, David @ 2001-12-06 17:09 UTC (permalink / raw)
To: tru64-unix-managers
[-- 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> </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 do
I detect when and ftp transfer has finished ??</FONT></SPAN></DIV>
<DIV><SPAN class=367595916-06122001><FONT face=Arial
size=2></FONT></SPAN> </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> </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> </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> </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> </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> </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> </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> </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> </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--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-12-06 17:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-06 17:09 Summary : File processing Question Rabjohns, David
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox