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:
~~
> | Excuse if this is a FAQ, but how can I set up a shell script to ftp to a
> | host and retrieve a file?
>
> If you install ncftp, you get a program called ncftpget that can be
> used to get files non-interactively (eg in a script).
Not necessaraly with ncftp, plain fto will do. In a script:
#
I would definitely recommend wget for this. Excellent utility, with excellent
docs (use info). It'll work through http proxies and everything.
regards,
vinny
Rahul Sood <[EMAIL PROTECTED]> writes:
> Excuse if this is a FAQ, but how can I set up a shell script to ftp to a
> host and retrieve a file?
Some have suggested using ncftp or wget to do this. That may be the best way
to go.
However, it is also possible to do it with plain-old ftp. You have t
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,
== ===
*-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?
If you install ncftp, you get a program called ncftpget that can be
used to get files non-interactively (eg in a script).
--
...Unix, MS-DOS, and MS Windows (
Excuse if this is a FAQ, but how can I set up a shell script to ftp to a
host and retrieve a file?
-R. Sood
[EMAIL PROTECTED]
7 matches
Mail list logo