Re: unattended ftp
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 <rsood@panix.com>
> >
> > 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 : andrelst@mozcom.com
> ======== == WebPage : http://andre.lasaltech.com
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
Reply to: