From owner-freebsd-questions Sat Nov 4 13:36:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from echoriath.hiddenrock.com (24-130-184-154.san.rr.com [24.130.184.154]) by hub.freebsd.org (Postfix) with SMTP id 0A52537B479 for ; Sat, 4 Nov 2000 13:36:18 -0800 (PST) Received: (qmail 9979 invoked by uid 1001); 4 Nov 2000 21:37:49 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 4 Nov 2000 21:37:48 -0000 Date: Sat, 4 Nov 2000 13:37:48 -0800 (PST) From: Peter Johnson To: Ryan Thompson Cc: joe , freebsd-questions@FreeBSD.ORG Subject: Re: FTP (auto-fetch) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message