From owner-freebsd-questions Wed May 16 13: 3:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from agayev.rt.net.tr (agayev.rt.net.tr [212.65.128.82]) by hub.freebsd.org (Postfix) with SMTP id 84FF137B422 for ; Wed, 16 May 2001 13:03:28 -0700 (PDT) (envelope-from nightbsd@mail.enderunix.org) Received: (qmail 72693 invoked by uid 1007); 16 May 2001 22:07:02 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 16 May 2001 22:07:02 -0000 Date: Wed, 16 May 2001 22:07:02 +0000 (GMT) From: Ismail YENIGUL X-X-Sender: To: Mike Meyer Cc: Tony Wells , Subject: Re: Scripting FTP actions In-Reply-To: <15106.56082.178578.218067@guru.mired.org> 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 you can use expect Expect is a program that performs programmed dialogue with other interactive programs. it is located under /usr/ports/lang/expect bye Ismail YENIGUL nightbsd@enderunix.org http://www.enderunix.org (Turkish *BSD Team Site) On Wed, 16 May 2001, Mike Meyer wrote: > 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. > > -- > Mike Meyer 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message