From owner-freebsd-questions Wed May 16 5: 0: 7 2001 Delivered-To: freebsd-questions@freebsd.org Received: from exchange.twowaytv.co.uk (exchange.twowaytv.co.uk [194.6.2.173]) by hub.freebsd.org (Postfix) with ESMTP id 8E5EE37B423 for ; Wed, 16 May 2001 05:00:03 -0700 (PDT) (envelope-from ADyas@twowaytv.com) Received: by exchange.twowaytv.co.uk with Internet Mail Service (5.5.2653.19) id ; Wed, 16 May 2001 12:56:48 +0100 Message-ID: <911D8F660DF6D411B61F00500462BA0171E235@exchange.twowaytv.co.uk> From: Alex Dyas To: freebsd-questions@FreeBSD.ORG Subject: RE: Scripting FTP actions Date: Wed, 16 May 2001 12:56:47 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I ran into a similar situation recently with scripting FTP gets, solved it using command line ftp thus: #!/bin/sh # # Perform FTP ftp 10.10.10.10 2>&1 < Changing the get to put should work. This involves having the following .netrc file in the home directory of the user under which the script is being run: <.netrc> machine 10.10.10.10 login password Obviously as .netrc contains the username/password you need to be sure this is in a secure place. alex.. > -----Original Message----- > From: Tony Wells [mailto:awells@journalstar.com] > Sent: 15 May 2001 19:28 > To: freebsd-questions@FreeBSD.ORG > Subject: Scripting FTP actions > > > 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? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message