Skip to content

Commit

Permalink
fix output nc to dev null
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonackermann committed Jul 21, 2016
1 parent a2fa9c3 commit 6a552b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ main() {
chmod -R 777 ./results/

echo "[INFO] Done. The benchmark results were saved to ./[data/]results/"
touch log.txt
tail -f log.txt

} # end of main

Expand Down Expand Up @@ -116,7 +118,7 @@ test_connection () {
port=80
fi

nc -w 1 "$host" $port < /dev/null;
nc -w 1 "$host" $port > /dev/null;
# curl --output /dev/null --silent --head --fail "$host"
while [[ $? -ne 0 ]] ;
do
Expand All @@ -129,7 +131,7 @@ test_connection () {
echo "...timeout"
return 2
fi
nc -w 1 "$host" $port < /dev/null;
nc -w 1 "$host" $port > /dev/null;
done
echo ""
}
Expand Down

0 comments on commit 6a552b2

Please sign in to comment.