Usage: ./checkurls.sh urlfile
#!/bin/bash
FILE=$1
exec 3<&0
exec 0<$FILE
while read line
do
/usr/bin/curl -silent -S -f $line --connect-timeout 3 > /dev/null || echo -e $line "\n\n"
done
exec 0<&3
Your url file should like something like:
http://www.google.com
http://www.google.com/testurl
mondotech.blogspot.com
mondotech.org
No comments:
Post a Comment