From owner-freebsd-questions Tue Aug 15 22:10:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kearneys.ca (cr1003527-a.rct1.bc.wave.home.com [24.113.36.145]) by hub.freebsd.org (Postfix) with SMTP id F072B37C0C3 for ; Tue, 15 Aug 2000 22:10:10 -0700 (PDT) (envelope-from brent@kearneys.ca) Received: (qmail 3224 invoked by uid 1000); 16 Aug 2000 05:12:36 -0000 Date: Tue, 15 Aug 2000 22:12:36 -0700 From: Brent Kearney To: FreeBSD Questions Cc: rezath@tm.net.my Subject: Re: FTP Using Cron in Freebsd 4.0 Message-ID: <20000815221236.B3151@kearneys.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 16, 2005 at 12:23:45PM +0800, Rezamys wrote: > I would like to know is there any possibility that by using Cron one can automatically ftp to another server? > > My idea is: > a) Set time; say after every 30 minutes run cron job > b) Ftp to another database server (in this case the server runs on solaris 2.6). Directory is /pub > c) Extract new data from that d/base server & put it in my Freebie server; say directory /pub/something > d) Mark a time "tag" on each new data > > If it can be done so, how? > Is there any configuration script sample that I can refer or any site that you can point to? > Check out fetch(1). It may be your answer if you are connecting to an anonymous ftpd. If not, check out the "scp" command (from ssh) in conjunction with with passwordless ssh-keys. -Brent --------------------------------------------------------------- Brent Kearney brent@kearneys.ca "We live in a world in which politics has replaced philosophy." --Martin L. Gross To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message