From owner-freebsd-questions Tue May 15 12: 3:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from maile.telia.com (maile.telia.com [194.22.190.16]) by hub.freebsd.org (Postfix) with ESMTP id 92A4937B422 for ; Tue, 15 May 2001 12:03:12 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by maile.telia.com (8.11.2/8.11.0) with ESMTP id f4FJ3Bh17844 for ; Tue, 15 May 2001 21:03:11 +0200 (CEST) Received: from ertr1013.student.uu.se (h185n2fls20o913.telia.com [212.181.163.185]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id VAA22618 for ; Tue, 15 May 2001 21:03:10 +0200 (CEST) Received: (qmail 50206 invoked by uid 1001); 15 May 2001 19:03:09 -0000 Date: Tue, 15 May 2001 21:03:09 +0200 From: Erik Trulsson To: Tony Wells Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Scripting FTP actions Message-ID: <20010515210309.A50193@student.uu.se> Mail-Followup-To: Tony Wells , freebsd-questions@FreeBSD.ORG References: <3B017535.2C9D98B8@journalstar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B017535.2C9D98B8@journalstar.com>; from awells@journalstar.com on Tue, May 15, 2001 at 01:28:06PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, May 15, 2001 at 01:28:06PM -0500, Tony Wells wrote: > Hi all, > I need to be able to set up something where I can script a bunch of > FTP actions to send files to a remote server and I'm not sure where to > start looking. > > As far as a client I use ncftp, and looking at the man page I only see > "auto fetching" of files. > > Has anyone done this, or am I better off just writing a perl script > that pretends to be an FTP client? I don't think ncftp can be used for this but may I suggest you take a look at ftp/curl from the ports collection which is perfect for doing FTP actions from inside a script. (curl can also handle several other protocols in addition to ftp.) -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message