#!/bin/sh
if [ -f check.pid ]; then echo "Warning - Pid File found.Another copy running"
fi
if [ "$1" = "" ]; then echo "Type $0 prefixodoestado"
exit 0
fi
touch check.pid
if [ -f "$1.ok" ]; then echo "Already listed , going on "
else
./site-cut -cade $1
fi
for i in `/bin/cat $1.ok`
do
if [ "$i" = "" ]; then 
echo "List is over , bye"
exit 0
else 
./check $i
fi
rm -rf check.pid
rm -rf $1.sites
#rm -rf $1.ok
done
