From owner-freebsd-questions Wed Aug 2 6: 0:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kingsqueak.org (cc737825-a.etntwn1.nj.home.com [24.3.202.115]) by hub.freebsd.org (Postfix) with ESMTP id 9C6DC37B5C1 for ; Wed, 2 Aug 2000 06:00:21 -0700 (PDT) (envelope-from drmoreau@kingsqueak.org) Received: by kingsqueak.org (Postfix, from userid 1001) id 3608B16E26; Wed, 2 Aug 2000 09:00:20 -0400 (EDT) Date: Wed, 2 Aug 2000 09:00:20 -0400 From: Chris To: Nathan Vidican Cc: questions@FreeBSD.ORG Subject: Re: ftp upload from script Message-ID: <20000802090020.A1195@kingsqueak.org> Reply-To: Chris References: <398739CC.713D40B3@wmptl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <398739CC.713D40B3@wmptl.com>; from webmaster@wmptl.com on Tue, Aug 01, 2000 at 04:57:48PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "expect" is the scripting lang. you want. Just starting to mess with it myself so I can't really tell you what it should be; however I can tell you it will be short and simple. On Tue, Aug 01, 2000 at 04:57:48PM -0400, Nathan Vidican wrote: > I need to have a script upload three files via FTP, is there anyway of > doing this from a script? for example: > > foreach $filename (@files) { > system("ftp username:pass@ftp.wmptl.net/directory/to/ftp/to < > $filename"); > } > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message