Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Aug 2000 16:05:03 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Nathan Vidican <webmaster@wmptl.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: ftp upload from script
Message-ID:  <20000801160503.A4666@dan.emsphone.com>
In-Reply-To: <398739CC.713D40B3@wmptl.com>; from "Nathan Vidican" on Tue Aug  1 16:57:48 GMT 2000
References:  <398739CC.713D40B3@wmptl.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Aug 01), Nathan Vidican said:
> 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");
> }

ncftpget and ncftpput (from the ncftp3 port) are nice for this.

> 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).

Why not put an ftp server on the Netware box?  We're using the ancient
Hellsoft FTPD.NLM and it works fine, but is limited to the DOS
namespace.  The ftpd that comes with 4.11 is better.

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000801160503.A4666>