Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / bin / checkfilelist
blobe75af4f9f8df233af52fcbb76726e3711c527181
1 #! /bin/sh
3 # checkfilelist - try retrieving files from server
5 # checkfilelist servername portno filelist
8 if test "$#" -lt 3 ; then
9 echo "usage: $0 servername portno filelist"
10 exit 2
13 HOSTNAME=$1 ; export HOSTNAME
14 PORTNO=$2 ; export PORTNO
15 FILELIST=$3 ; export FILELIST
17 grep '^/' $FILELIST | cut -f1 |
19 while read URL
21 export URL
22 echo ">>>>> $URL"
24 telnet $HOSTNAME $PORTNO << _EOF_
25 GET $URL HTTP/1.0
27 _EOF_
28 ) 2> /dev/null | head -5 | grep 'HTTP/1.0'
29 killall telnet
30 done