8080status.sh 287 Bytes
#!/bin/bash

#while read url ; do
#    ret=$(curl -I -s "$url" -o /dev/null -w "%{http_code}\n")
#    ((ret==200)) && echo "$url" >> new_list_URL
#done < list_URL

ret=$(curl -I -s "http://127.0.0.1:8080/" -o /dev/null -w "%{http_code}\n")
if [ $ret -eq 200 ]
then exit 0
else exit 1
fi