From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f72b0,6085b126b0df2ddd X-Google-Attributes: gidf72b0,public X-Google-Thread: 1012a6,6085b126b0df2ddd X-Google-Attributes: gid1012a6,public X-Google-Thread: 1020c6,6085b126b0df2ddd X-Google-Attributes: gid1020c6,public X-Google-Thread: fc89c,6085b126b0df2ddd X-Google-Attributes: gidfc89c,public X-Google-Thread: fee84,6085b126b0df2ddd X-Google-Attributes: gidfee84,public From: timlee@netcom.com.DELETE-THIS.BIT (Timothy J. Lee) Subject: Re: Automatic downloading by using cron ? Date: 1998/12/16 Message-ID: #1/1 X-Deja-AN: 422958184 Sender: timlee@netcom19.netcom.com References: <3677D4C6.2FC1B5FC@ulg.ac.be> Followup-To: comp.unix.admin,comp.unix.shell,comp.unix.osf.osf1,comp.unix.misc,comp.unix.programmer Reply-To: see-signature-for-email-address---junk-not-welcome Newsgroups: comp.unix.admin,comp.unix.shell,comp.unix.osf.osf1,comp.unix.misc,comp.unix.programmer Nguyen-Dai Quy writes: |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 ? Try using one of the following: lynx -dump ftp://ftpserver.wherever.com/directory/file > local-file-name wget ftp://ftpserver.wherever.com/directory/file Both lynx and wget are free software (http://lynx.browser.org and ftp://prep.ai.mit.edu/pub/gnu respectively). If PORT vs. PASV mode is of concern to you (e.g. if you are behind a firewall that lets one but not the other through), be aware that lynx defaults to PORT and must have one of the source files changed before compiling to make it use PASV mode (grep for NO_PORT). wget defaults to PORT but has a command line option to use PASV mode. -- ------------------------------------------------------------------------ Timothy J. Lee timlee@ Unsolicited bulk or commercial email is not welcome. netcom.com No warranty of any kind is provided with this message.