From owner-freebsd-questions Tue Aug 1 13:59:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.wmptl.com (mail2.wmptl.com [216.221.73.131]) by hub.freebsd.org (Postfix) with ESMTP id E3D9C37BDE9 for ; Tue, 1 Aug 2000 13:59:32 -0700 (PDT) (envelope-from webmaster@wmptl.com) Received: from wmptl.com ([10.0.0.168]) by mail2.wmptl.com (8.9.3/8.9.3) with ESMTP id QAA13891 for ; Tue, 1 Aug 2000 16:57:08 -0400 (EDT) (envelope-from webmaster@wmptl.com) Message-ID: <398739CC.713D40B3@wmptl.com> Date: Tue, 01 Aug 2000 16:57:48 -0400 From: Nathan Vidican X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: questions@freebsd.org Subject: ftp upload from script Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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"); } The script is a simple backup script which creates a bunch of tar files, and it currently emails someone to tell them to manually FTP said file up. I'd like it to be able to just ftp those files up automatically when it's finished. (files are 200~635megs). We are FTP'ing the files into a Windows box which intern dumps them to a mapped Novell Netware volume which intern has it's own nightly backup system (24gig tape changer). Using SMBclient may be an option to if it's scriptable in this manner? Currently not running a SAMBA server but I could easily be doing so if the need arose. Any other ideas or suggestions welcomed. -- Nathan Vidican webmaster@wmptl.com Windsor Match Plate & Tool Ltd. http://www.wmptl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message