From owner-freebsd-questions@FreeBSD.ORG Wed May 6 15:44:50 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 DC64B1065676 for ; Wed, 6 May 2009 15:44:50 +0000 (UTC) (envelope-from prvs=3708b6a46=echen@nyx.com) Received: from CHMAILGW02.tradearca.com (chmailgw02.nyx.com [198.140.49.38]) by mx1.freebsd.org (Postfix) with ESMTP id 9258C8FC08 for ; Wed, 6 May 2009 15:44:50 +0000 (UTC) (envelope-from prvs=3708b6a46=echen@nyx.com) X-IronPort-AV: E=Sophos;i="4.40,303,1238994000"; d="scan'208";a="77173601" Received: from nysecorpsmtp01.corp.nyse.com (HELO nysecorpsmtp01.nyse.com) ([159.125.152.166]) by CHMAILGW02-int.tradearca.com with ESMTP; 06 May 2009 10:44:49 -0500 In-Reply-To: <70C0964126D66F458E688618E1CD008A0793EBC9@WADPEXV0.waddell.com> To: "Gary Gatten" X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: Eddie Chen Date: Wed, 6 May 2009 11:44:46 -0400 X-MIMETrack: Serialize by Router on NYSECORPSMTP01/NYSE(Release 6.5.1|January 21, 2004) at 05/06/2009 11:44:49 AM MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" Cc: freebsd-questions@freebsd.org 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:44:51 -0000 Gary, Yes I am look a retrunCode from "put/get/reanme". We run and transmit very large amount of data and jobs thru out the evening. These jobs runs under Linux and AIX. - This was not an issue on the mainframe, the mainframe ftp client support return code. Currently, we have two solutions, write script(s) to look for "226" and "250" and/or PERL ftp that reads ftp command. Reading the ftp commands seems to be better, because it will exit(rc) if any of "put" or "rename" failed. Thanks. "Gary Gatten" To "Eddie Chen" , 05/06/2009 11:08 AM cc Subject RE: ReturnCode Checking for FTP 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. Lowell Gilbert freebsd-questions@freebsd.org cc 05/05/2009 Eddie Chen 08:56 PM Subject Re: ReturnCode Checking for FTP Please respond to freebsd-questions @freebsd.org 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 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@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."
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.