From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,6085b126b0df2ddd X-Google-Attributes: gid1020c6,public X-Google-Thread: 1012a6,6085b126b0df2ddd X-Google-Attributes: gid1012a6,public X-Google-Thread: fc89c,6085b126b0df2ddd X-Google-Attributes: gidfc89c,public X-Google-Thread: f72b0,6085b126b0df2ddd X-Google-Attributes: gidf72b0,public X-Google-Thread: fee84,6085b126b0df2ddd X-Google-Attributes: gidfee84,public From: qhuo Subject: Re: Automatic downloading by using cron ? Date: 1998/12/23 Message-ID: <36805353.CD334257@990.net>#1/1 X-Deja-AN: 425042248 Content-Transfer-Encoding: 7bit References: <3677D4C6.2FC1B5FC@ulg.ac.be> <367aa6ac.3912891@news.tpnet.pl> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@clinux.ml.org X-Trace: clinux.ml.org 914379472 17559 202.102.13.184 (23 Dec 1998 02:17:52 GMT) Mime-Version: 1.0 NNTP-Posting-Date: 23 Dec 1998 02:17:52 GMT Newsgroups: comp.unix.admin,comp.unix.shell,comp.unix.osf.osf1,comp.unix.misc,comp.unix.programmer MK wrote: > > On Wed, 16 Dec 1998 16:41:58 +0100, 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 ? > > man wget > man lftp > man pavuk > > and lots of other packages > ftp can be used to do it. First create a file ~/.netrc contains a line like this: default anonymous guest@ Then create a command file ftp_commands like this: open ftp_site_address cd /dir/to/the/file lcd /local/dir/to/put/the/file bin (or asc) get name_of_the_file bye Now, issue the command: ftp < ftp_commands To do it via crontab, just put last command in "mydownload".