add notes 04-yaml, move homework 4.1 to subdirectory

This commit is contained in:
2022-04-12 10:33:57 +07:00
parent 744437c4d6
commit 10cd187006
11 changed files with 40 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
serverPort=80
servers=("192.168.0.1" "173.194.222.113" "87.250.250.242")
for i in {1..5}
do
for server in ${servers[@]}
do
curl --connect-timeout 3 --max-time 5 http://${server}:${serverPort}
curlResult=$?
echo "$(date) curl result for ${server} is ${curlResult}" >> curl.log;
done
done