#!/bin/sh

# WIDE AREA INFORMATION SERVER SOFTWARE:
#   No guarantees or restrictions.  See the readme file for the full standard
#   disclaimer.
#
# Script for checking all source in a directory to see if they are alive.
# This is useful for a system administrator.  If an advertized server is
# down consistently, please notify the maintainer and the maintainer of the
# directory of servers that the source came from.  (the master directory of
# servers is maintained by brewster@think.com)
#
# $Log: check-sources,v $
# Revision 1.1.1.1  1996/06/04 20:35:30  julia
# autoconf baseline
#
# Revision 1.1.1.1  1996/04/30 18:21:12  dmitriy
# Version 2.1 -- autoconf baseline
#
# Revision 1.1.1.1  1996/04/23  14:01:26  dmitriy
# Version 2.0
#
# Revision 2.0  1995/09/08 07:55:19  pfeifer
# Metaconfig baseline
#
# Revision 1.1  1994/08/05  06:52:21  pfeifer
# Release beta 04
#
# Revision 1.2  92/02/23  17:06:03  jonathan
# changed name to waisping (for server logs)
# 
# $Header: /usr/local/cvs/wais/freeWAIS-sf-2.1/bin/check-sources,v 1.1.1.1 1996/06/04 20:35:30 julia Exp $
#

if (test $# -ne 1)
then
	echo "usage: $0 <wais-source-directory>"
	echo "  Checks all sources in the directory <wais-source-directory>"
	echo "  to see if they are responding to WAIS requests."	
	exit 1
fi

for s in $1/*.src
do
	 waisping -c $1 `basename $s`
done



