You could write a script like: /home/foobar/ftp.script: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user foobar foobars_password lcd /home/foobar get filename ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
and then execute it whenyou want, or put it in cron... like this: /var/spool/cron/crontabs/foobar: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0 0 * * * ftp -n -i </home/foobar/ftp.script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- quiet rob ----------- "Just keep telling yourself you are immortal" --Albert Hofmann On Mon, 12 Oct 1998, A. M. Varon wrote: > On 12 Oct 1998, Ole J. Tetlie wrote: > > > *-Rahul Sood <[EMAIL PROTECTED]> > > > > Excuse if this is a FAQ, but how can I set up a shell script to ftp to a > > host and retrieve a file? > > wget. no shell script necessary to get a file. Handles anonymous and > password protected FTP sites. > > regards, > > == ========== Andre M. Varon Lasaltech Incorporated > == == ==== Technical Head Fax-Tel: (034)435-0836 > == ===== == > == == == E-mail : [EMAIL PROTECTED] > ======== == WebPage : http://andre.lasaltech.com > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >