Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- CURL=`which curl`
- TIMEOUT=2
- resp=`$CURL -m $TIMEOUT -I $1 2> /tmp/curl.log| grep HTTP/1.1 | awk {'print $2'}`
- if [ -z $resp ]; then
- resp=1
- fi
- if [ ${resp} -ne 200 ]; then
- echo "Erro $resp em $1"
- exit 1
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement