1#! /bin/csh -f
2#
3# run urlPageGrab on a list of sites known to have images at their root page, and
4# also to work with URLSimpleDownload with SSL. Arguments to this 
5# script are passed on to urlPageGrab unmodified.
6#
7set ARG_LIST =
8set SSL = NO
9#
10while ( $#argv > 0 )
11	set thisArg = "$argv[1]"
12	if ( $thisArg == "s" ) then
13		set SSL = YES
14	endif
15	set ARG_LIST = "$ARG_LIST $thisArg"
16	shift
17end
18echo Starting grabPages\; args: $ARG_LIST
19#
20# sites which fail when SSL is NOT specified
21#
22set SSL_SITES = 
23
24set NORM_SITES = ( \
25   www.proteron.com \
26   www.thawte.com \
27   www.cduniverse.com \
28   www.yellownet.ch)
29
30if ($SSL == "YES") then
31	set ALL_SITES = "$SSL_SITES $NORM_SITES"
32else
33	set ALL_SITES = "$NORM_SITES"
34endif
35#
36foreach site ($ALL_SITES);
37	urlPageGrab $site / $ARG_LIST;
38end
39