From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,6085b126b0df2ddd X-Google-Attributes: gidfc89c,public X-Google-Thread: 1020c6,6085b126b0df2ddd X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,6085b126b0df2ddd X-Google-Attributes: gidfee84,public X-Google-Thread: f72b0,6085b126b0df2ddd X-Google-Attributes: gidf72b0,public X-Google-Thread: 1012a6,6085b126b0df2ddd X-Google-Attributes: gid1012a6,public From: urban.roth@arcormail.de (Urban Roth) Subject: Re: Automatic downloading by using cron ? Date: 1998/12/17 Message-ID: <36791563.3985931@news.sap-ag.de>#1/1 X-Deja-AN: 423256547 References: <3677D4C6.2FC1B5FC@ulg.ac.be> X-Complaints-To: newsmaster@sap-ag.de X-Trace: mailusr.wdf.sap-ag.de 913904209 12717 155.56.143.52 (17 Dec 1998 14:16:49 GMT) Organization: SAP AG Reply-To: urban.roth@arcormail.de NNTP-Posting-Date: 17 Dec 1998 14:16:49 GMT Newsgroups: comp.unix.admin,comp.unix.shell,comp.unix.osf.osf1,comp.unix.misc,comp.unix.programmer 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 ? > >In the interactive mode, I have to do : >#ftp ftp.xxxx.com >.... anonymous >.... myaddress.. >.... cd .... >.... get file >..... bye for exit > You can start this script with cron. #!/bin/ksh { echo "------------- `date` --" ftp -i -v -n ftp.xxxx.com < /tmp/mydownload.log 2>&1 # EOF Regards, Urban