home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh -f
- # fetch and open weather map file(s) from unidata.ucar.edu:images/...
-
- set m = 128.117.140.3 # unidata.ucar.edu
- set p = images # path to weather maps
- set t = /tmp/W_maps # temporary place for files
- set o = /tmp/console.log # output logfile
-
- mkdirs $t
- cd $t
-
- ftp -i -n $m <<eof
- user anonymous guest
- bin
- cd $p
- mget $*
- eof
- foreach i ($*)
- test -s $i
- if ($status) then
- echo "Couldn't get weather map $i" | open
- else
- open $i
- endif
- end
-