From owner-freebsd-questions Sat Nov 4 15:50:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id 9D8E137B4C5 for ; Sat, 4 Nov 2000 15:50:37 -0800 (PST) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id RAA39115; Sat, 4 Nov 2000 17:53:47 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Sat, 4 Nov 2000 17:53:47 -0600 (CST) From: Ryan Thompson To: Peter Johnson Cc: joe , freebsd-questions@FreeBSD.ORG Subject: Re: FTP (auto-fetch) In-Reply-To: Message-ID: Organization: SaskNow Technologies [www.sasknow.com] MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Johnson wrote to Ryan Thompson: > If you install ncftp from the ports, you should get ncftpput and ncftpget > which are command-line variations of the two commands, very useful for > scripts and batch processing. > > Pete Useful as long as the scripts do not need to be ported to machines/platforms without ncftpput/ncftpget. Same reason I don't run a patched ftp(1) any more :-) But, yes, if the scripts are to be run on a controlled set of machines, those will come in handy. - Ryan > On Sat, 4 Nov 2000, Ryan Thompson wrote: > > > joe wrote to freebsd-questions@FreeBSD.ORG: > > > > > Dear sir/Madam > > > > > > I've been trying to use the ftp (auto-fetch) command: > > > ftp ftp://[user:password@]host[:port]/file[/] > > > > > > As I found, the default file transferring operation of this > > > instruction is eqivalant to a ftp's "get" command, but actually I want > > > this command to perform a ftp's "put" command and do it automatically. > > > Therefor, are there any options or parameters I have to add to make it > > > works? > > > > Actually, ftp(1) doesn't support this sort of command line operation. > > Some time ago (FreeBSD 2.2.x, I think), I patched ftp(1) to support a put > > if two arguments were given. (Worked for single files). > > -- Ryan Thompson Network Administrator, Accounts Phone: +1 (306) 664-1161 SaskNow Technologies http://www.sasknow.com #106-380 3120 8th St E Saskatoon, SK S7H 0W2 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message