Skip to content

Commit

Permalink
Update to tcurl to search for problem/error
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewVSutherland committed Jul 8, 2016
1 parent e520875 commit 7bb83ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perfmon/tcurl.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
while read line; do
for i in `seq 1 $1`; do
echo -e "${line}" : $(curl -L -silent -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" "${line}");
curl -L -silent -w "\nCurl URL %{url_effective}, HTTP status %{http_code}, Downloaded %{size_download} bytes, Total time %{time_total} secs\n" ${line} | grep -E '( [Ee]rror| [Pp]roblem|Curl)'
done
done

0 comments on commit 7bb83ef

Please sign in to comment.