From owner-freebsd-questions Mon Feb 17 09:12:28 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA27981 for questions-outgoing; Mon, 17 Feb 1997 09:12:28 -0800 (PST) Received: from superior.truenorth.org (ppp016-sm2.sirius.com [205.134.231.16]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA27965 for ; Mon, 17 Feb 1997 09:12:18 -0800 (PST) Received: (from jgrosch@localhost) by superior.truenorth.org (8.8.3/8.7.3) id JAA25165; Mon, 17 Feb 1997 09:11:27 -0800 (PST) From: Josef Grosch Message-Id: <199702171711.JAA25165@superior.truenorth.org> Subject: Re: Automatic File Send (FTP) In-Reply-To: <3.0.32.19970217105051.00a6f100@netview.net> from John Clark at "Feb 17, 97 10:50:06 am" To: email@john.net (John Clark) Date: Mon, 17 Feb 1997 09:11:15 -0800 (PST) Cc: questions@freebsd.org Reply-To: jgrosch@sirius.com X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Hello, > >I am trying to dispatch a file automatically to another server at a given >time. The Cron scheduling is obvious, but what is not obvious is a >practical way of invoking an FTP agent to do the transfer. What I am >thinking of is the reverse of NCFTP's colon mode of file fetching (ie. >ncftp site.name:file.name). The script will also have to send a user name >and pwd. Accomplishing this is not at all obvious. Does anyone have >suggestions? > >Thanks in advance. > > >John Clark >[email@john.net] > Read the FTP man page. Look at the section which talks about the .netrc file. In the past I have used a perl script to generate, on the fly, a .netrc file then invoke ftp. Works pretty well Josef -- Josef Grosch | Laugh while you can, monkey boy ! | FreeBSD 2.1.6 jgrosch@sirius.com | - John Warfin - | UNIX for the masses