Commit f1315e31 authored by scuq's avatar scuq

Add new file

parent 625ad513
#/bin/sh
URL=$1
INTERVAL=2
if [ "$URL" == "" ] ; then
echo ERROR: specify url as \$1
exit 1
fi
echo "testing $URL"
while true; do
NOW=$(date +"%Y-%m-%d_%H:%M:%S")
echo -n $NOW;
curl -o /dev/null -w ": HttpCode: %{http_code} Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" ${URL} --silent
sleep ${INTERVAL}
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment