From owner-freebsd-questions Wed Aug 16 1:47:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mta3.tm.net.my (mta3.tm.net.my [202.188.0.147]) by hub.freebsd.org (Postfix) with ESMTP id 8809737B51B for ; Wed, 16 Aug 2000 01:47:27 -0700 (PDT) (envelope-from rezath@tm.net.my) Received: from setan ([202.188.127.2]) by mta3.tm.net.my (InterMail v03.02.05 118 121 101) with SMTP id <20000816084718.NQI20953@setan>; Wed, 16 Aug 2000 16:47:18 +0800 Message-ID: <016401c5a240$49bf2f00$0b1603c8@tmmaster> From: "Rezamys" To: "Ertan Kucukoglu" Cc: References: <00d101c5a21a$4aa05c80$0b1603c8@tmmaster> <399A4FF5.BA8CCC2F@ozlerplastik.com> Subject: Re: FTP Using Cron in Freebsd 4.0 Date: Tue, 16 Aug 2005 16:55:44 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 Disposition-Notification-To: "Rezamys" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thank you. When you say "pass the address as a command line parameter" you mean that I need to put it in the cron script? Something like this?: */30 * * * * ftp://ftp.abc.com/pub/new_text_data:user@passwd/pub/* /pub/something Please comment. TQ ----- Original Message ----- From: "Ertan Kucukoglu" To: "Rezamys" Sent: Wednesday, August 16, 2000 4:25 PM Subject: Re: FTP Using Cron in Freebsd 4.0 > > Rezamys wrote: > > > > Hello All, > > > > 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? > > > > > > All advise is much appreciated. > > TQ > > > > > > Hi Rezamys, > > I suggest you to use greed. You can find it in ports. this program can get > you what you need. you just pass the address as a command line parameter. > > greed ftp://ftp.abc.com/pub/what_you_want.tgz > > Above sample should be enough for you. Also you can redirect its output and > mail it to you. > > Best Regards, > > -- > Ertan Kucukoglu > ertank@ozlerplastik.com > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message