From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII 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 X-Google-Thread: 1020c6,6085b126b0df2ddd X-Google-Attributes: gid1020c6,public X-Google-Thread: 1012a6,6085b126b0df2ddd X-Google-Attributes: gid1012a6,public From: Mario Stargard Subject: Re: Automatic downloading by using cron ? Date: 1998/12/16 Message-ID: <3677EE60.DEFB62EA@on.aibn.com>#1/1 X-Deja-AN: 422938840 Content-Transfer-Encoding: 8bit References: <3677D4C6.2FC1B5FC@ulg.ac.be> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Bell Solutions MIME-Version: 1.0 NNTP-Posting-Date: Wed, 16 Dec 1998 12:30:59 EDT Newsgroups: comp.unix.admin,comp.unix.shell,comp.unix.osf.osf1,comp.unix.misc,comp.unix.programmer 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