From owner-freebsd-questions Wed May 16 12:55: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 7C6AC37B422 for ; Wed, 16 May 2001 12:54:59 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 86250 invoked by uid 100); 16 May 2001 19:54:58 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15106.56082.178578.218067@guru.mired.org> Date: Wed, 16 May 2001 14:54:58 -0500 To: Tony Wells Cc: questions@freebsd.org Subject: Re: Scripting FTP actions In-Reply-To: <28816825@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tony Wells types: > 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? Since the perl library has a ftp tool in it, that's not completely crazy. The python libraries ftp class is more flexible, though. The best solution has already been suggested by Daniel Frazier - use scp with the ~/.ssh/authorized_keys file. Even if you're writing a perl script to invoke the scp commands, that's still a lot saner than either of those libraries. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message