Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Mario Stargard <mstargard@on.aibn.com>
Subject: Re: Automatic downloading by using cron ?
Date: 1998/12/16	[thread overview]
Message-ID: <3677EE60.DEFB62EA@on.aibn.com> (raw)
In-Reply-To: 3677D4C6.2FC1B5FC@ulg.ac.be

	This can be accomplished using a .netrc file and "Here Text".

#!/bin/sh
ftp machine << _HERE_
cd somedirectory
ascii
get somefile
bye
_HERE_

.netrc
machine ray login demo password mypassword

	See the man page for ftp and netrc

	Cheers,
		Mario

Nguyen-Dai Quy wrote:
> 
> Hi,
> Howto download a file via ftp (anonymous) automatically by using
> crontab ?
> I try in my cron file:
> 0 2 25 12 * /home/users/quy/mydownload
> 
> With my script "mydownload". Which command I can put in my script
> for automatic downloading ?
> 
> In the interactive mode, I have to do :
> #ftp ftp.xxxx.com
> .... anonymous
> .... myaddress..
> .... cd ....
> .... get file
> ..... bye for exit
> 
> Any ideas for help ?
> Thanks in advance.
> _______________________________________________________
>  Nguyen-Dai Quy
>  LTAS - M�canique de la Rupture, ULG.
>  Rue Ernest Solvay 21, B�t C3, B 4000, Li�ge, Belgique
>  T�l:+32-4-366.92.41         Fax:+32-4-366.93.11
>  http://isis.ltas.ulg.ac.be/dang/who/quy.html
> _______________________________________________________

--
Mario Stargard
Unix Systems Administrator
(613) 781 1373



  parent reply	other threads:[~1998-12-16  5:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-16  5:00 Automatic downloading by using cron ? Nguyen-Dai Quy
1998-12-16  5:00 ` J. S. Jensen
1998-12-16  5:00 ` Mario Stargard [this message]
1998-12-16  5:00 ` Timothy J. Lee
1998-12-17  5:00   ` William Roeder
1998-12-17  5:00 ` Giant Wang
1998-12-17  5:00   ` Mike Di Fulvio
1998-12-17  5:00     ` Jens Kristian S�gaard
1998-12-17  5:00 ` Matt Bumgardner
1998-12-17  5:00   ` Mike Bristow
1998-12-17  5:00 ` Nikola Milutinovic
1998-12-17  5:00 ` Urban Roth
1998-12-20  5:00 ` MK
1998-12-23  5:00   ` qhuo
1998-12-29  5:00     ` Bill Thompson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox