From owner-freebsd-questions Sat Feb 21 17:32:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA24101 for freebsd-questions-outgoing; Sat, 21 Feb 1998 17:32:26 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cesit1.unifi.it (cesit1.unifi.it [150.217.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA23976 for ; Sat, 21 Feb 1998 17:31:58 -0800 (PST) (envelope-from ugo@dsi.UNIFI.IT) Received: from aguirre.dsi.unifi.it by CESIT1.UNIFI.IT (PMDF V5.1-10 #23168) with SMTP id <01ITV4LIMQVO000HB6@CESIT1.UNIFI.IT> for questions@FreeBSD.ORG; Sun, 22 Feb 1998 02:31:20 MET Received: from dsi.unifi.it ([150.217.1.205]) by aguirre.dsi.unifi.it (4.1/SMI-4.1) id AA16702; Sun, 22 Feb 1998 02:32:06 +0100 Received: from pegasus.home.net (pegasus.home.net [192.168.1.3]) by dsi.unifi.it (8.8.8/8.8.8) with ESMTP id KAA29650; Sat, 21 Feb 1998 10:47:12 +0100 (MET envelope-from ugo) Received: (from ugo@localhost) by pegasus.home.net (8.8.8/8.8.7) id KAA00418; Sat, 21 Feb 1998 10:47:11 +0100 (MET) Date: Sat, 21 Feb 1998 10:47:10 +0100 (MET) From: Ugo Paternostro Subject: RE: auto ftp upload In-reply-to: <199802191501.JAA29137@mutsgo.dyn.ml.org> To: George Vagner Cc: questions@FreeBSD.ORG Message-id: Organization: Not an organization MIME-version: 1.0 X-Mailer: XFMail 1.2 [p0] on FreeBSD Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 8bit X-Priority: 3 (Normal) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 19-Feb-98 George Vagner wrote about "auto ftp upload": > i want to automatically upload a file using ftp to a web site > without user intervention but i dont know the syntax to pass the file to the > ftp program. The ftp program that comes with the OS is an interactive tool: it is meant to be used typing commands "online". This does *NOT* mean that you have to use it that way ;-) You can, for example, grab your favorite text editor and create a file like this: ----------------CUT---------------- open some.site.in.the.net user your.user.name your.password bin cd some/where/it/the/host/tree put something.tar.gz close quit ----------------CUT---------------- Let's call this file "ftp.cmd". Then you may issue the following command: ftp -inv