Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 May 2009 10:08:37 -0500
From:      "Gary Gatten" <Ggatten@waddell.com>
To:        "Eddie Chen" <echen@nyx.com>, <freebsd-questions@freebsd.org>
Subject:   RE: ReturnCode Checking for FTP
Message-ID:  <70C0964126D66F458E688618E1CD008A0793EBC9@WADPEXV0.waddell.com>
In-Reply-To: <OF8E076839.4B94D84B-ON852575AE.004EC567-852575AE.004F2039@nyx.com>
References:  <44zldrjbgr.fsf@lowell-desk.lan> <OF8E076839.4B94D84B-ON852575AE.004EC567-852575AE.004F2039@nyx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Eddie Chen
Sent: Wednesday, May 06, 2009 9:24 AM
To: freebsd-questions@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.




=20

                Lowell Gilbert

             <freebsd-question

             s-local@be-well.i
To=20
             lk.org>                   freebsd-questions@freebsd.org

=20
cc=20
                05/05/2009             Eddie Chen <echen@nyx.com>

             08:56 PM
Subject=20
                                       Re: ReturnCode Checking for FTP

=20

             Please respond to

             freebsd-questions

               @freebsd.org

=20

=20





Eddie Chen <echen@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=20
recipient, you are hereby notified that any dissemination,=20
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify the=20
sender immediately by replying to the message, and please delete
it from your system. Thank you.  NYSE Euronext, Inc.

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





<font size=3D"1">
<div style=3D'border:none;border-bottom:double windowtext 2.25pt;padding:0i=
n 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>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70C0964126D66F458E688618E1CD008A0793EBC9>