From owner-freebsd-questions@FreeBSD.ORG Wed May 6 15:09:13 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA7A8106564A for ; Wed, 6 May 2009 15:09:12 +0000 (UTC) (envelope-from Ggatten@waddell.com) Received: from mailhost0.waddell.com (mailhost0.waddell.com [12.154.38.61]) by mx1.freebsd.org (Postfix) with ESMTP id BAF998FC08 for ; Wed, 6 May 2009 15:09:12 +0000 (UTC) (envelope-from Ggatten@waddell.com) Received: from mailhost2.waddell.com (mailhost2.waddell.com [10.1.10.30]) by mailhost0.waddell.com (8.13.8/8.13.8) with ESMTP id n46F8fJ3011416; Wed, 6 May 2009 10:08:51 -0500 (CDT) (envelope-from Ggatten@waddell.com) Received: from mailhost2.waddell.com (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id F3A3D8A461; Wed, 6 May 2009 10:08:40 -0500 (CDT) Received: from wadpexf0.waddell.com (wadpexf0.waddell.com [192.168.204.24]) by mailhost2.waddell.com (Postfix) with ESMTP id CB9358A463; Wed, 6 May 2009 10:08:40 -0500 (CDT) Received: from WADPEXV0.waddell.com ([192.168.204.25]) by wadpexf0.waddell.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 6 May 2009 10:08:40 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 6 May 2009 10:08:37 -0500 Message-ID: <70C0964126D66F458E688618E1CD008A0793EBC9@WADPEXV0.waddell.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ReturnCode Checking for FTP Thread-Index: AcnOWrTtUgtnjhZeQAyY+/skyLIXcwAAFbHg References: <44zldrjbgr.fsf@lowell-desk.lan> From: "Gary Gatten" To: "Eddie Chen" , X-OriginalArrivalTime: 06 May 2009 15:08:40.0487 (UTC) FILETIME=[8A081B70:01C9CE5C] Cc: Subject: RE: ReturnCode Checking for FTP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2009 15:09:13 -0000 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-questions@freebsd.org =20 cc=20 05/05/2009 Eddie Chen 08:56 PM Subject=20 Re: ReturnCode Checking for FTP =20 Please respond to freebsd-questions @freebsd.org =20 =20 Eddie Chen 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"
"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."