Skip to content

Instantly share code, notes, and snippets.

@jaymzcd
Created March 30, 2010 10:50
Show Gist options
  • Save jaymzcd/349000 to your computer and use it in GitHub Desktop.
Save jaymzcd/349000 to your computer and use it in GitHub Desktop.
#!/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