Created
March 30, 2010 10:50
-
-
Save jaymzcd/349000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OFFSET=1000 | |
DATA=`wget -nv -O - http://$1 2>/dev/null` | |
LENGTH=${#DATA} | |
if [ $LENGTH -lt $OFFSET ] | |
then | |
echo 'Page returned too view bytes'; | |
else | |
echo 'Page seems ok'; | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment