From owner-freebsd-questions Tue May 15 13:53:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from trinity.magpage.com (trinity.magpage.com [216.155.0.8]) by hub.freebsd.org (Postfix) with ESMTP id 848E037B424 for ; Tue, 15 May 2001 13:53:37 -0700 (PDT) (envelope-from dfrazier@magpage.com) Received: from magpage.com (dfrazier@poomba.magpage.com [216.155.24.136]) by trinity.magpage.com (8.11.2/8.11.2) with ESMTP id f4FKrKF08726; Tue, 15 May 2001 16:53:20 -0400 (EDT) Message-ID: <3B019740.2110063D@magpage.com> Date: Tue, 15 May 2001 16:53:20 -0400 From: Daniel Frazier X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Tony Wells Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Scripting FTP actions References: <3B017535.2C9D98B8@journalstar.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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'd use scp. with scp you can utilize a ~/.ssh/authorized_keys file on the destination machine and you won't have to put any passwords in the script. -- ---------------------------------------------------------------------- Daniel Frazier Tel: 302-239-5900 Ext. 231 Systems Administrator Fax: 302-239-3909 MAGPAGE, We Power the Internet WWW: http://www.magpage.com/ "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message