ReturnCode Checking for FTP

Gary Gatten Ggatten at waddell.com
Wed May 6 15:09:13 UTC 2009


Can I assume you want return codes to know if the file was transferred
correctly?  Several years ago I was involved in architecting a
middleware app for file/data exchange.  For ftp delivery (and others)
we'd check the file size locally, put the file, then check the file size
on the remote side.  Not fool-proof, such as CRC or Hash of somekind,
but pretty good.  Use bin mode for everything.  Also, maybe as part of
the file record itself you can embed a hash and have the client check
this when processing the file on their end.

Unfortunately when using ftp you never know what the ftp server
supports, so unless you can dictate "supported" ftp servers, you can't
get too fancy.

G


-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Eddie Chen
Sent: Wednesday, May 06, 2009 9:24 AM
To: freebsd-questions at freebsd.org
Subject: Re: ReturnCode Checking for FTP





Lowell,

         On my AIX and Linux system we don't have fetch installed. I
Googled  "fetch", can't found the download  URL for "fetch".
   It seems "fetch(1)" will get file(s)... We mostly push the file(s) to
the clients.  Thanks.




 

                Lowell Gilbert

             <freebsd-question

             s-local at be-well.i
To 
             lk.org>                   freebsd-questions at freebsd.org

 
cc 
                05/05/2009             Eddie Chen <echen at nyx.com>

             08:56 PM
Subject 
                                       Re: ReturnCode Checking for FTP

 

             Please respond to

             freebsd-questions

               @freebsd.org

 

 





Eddie Chen <echen at nyx.com> writes:

>    I am looking for a FTP clients that exit with a return code.
>
>    However, last week I download the tnftp and started implementing
it.
>    It's actually trivial to implement this feature.
>
>    If this works, do you think it should be part of the ftp client.

I've never used return codes with ftp(1),
but I have used them with fetch(1), which
is also part of the base system.

Have you tried fetch?  If it doesn't meet
your needs, can you explain why?

--
Lowell Gilbert, embedded/networking software engineer, Boston area
                         http://be-well.ilk.org/~lowell/




Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment
to it is privileged, confidential and protected from disclosure.  If the

reader of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the 
sender immediately by replying to the message, and please delete
it from your system. Thank you.  NYSE Euronext, Inc.

_______________________________________________
freebsd-questions at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"





<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."
</font>



More information about the freebsd-questions mailing list