From 99ccc04c41da05f05ec91faaa53cbfd32ff719fe Mon Sep 17 00:00:00 2001 From: Ankam Ravi Kumar Date: Sat, 16 Jun 2018 17:47:30 +0530 Subject: [PATCH] Create untiloop.sh --- untiloop.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 untiloop.sh diff --git a/untiloop.sh b/untiloop.sh new file mode 100644 index 0000000..7994e64 --- /dev/null +++ b/untiloop.sh @@ -0,0 +1,19 @@ +#!/bin/bash +#Purpose: Until Loop Example for Host Ping +#Version:1.0 +#Created Date: Mon May 28 22:18:52 IST 2018 +#Modified Date: +#WebSite: https://arkit.co.in +#Author: Ankam Ravi Kumar +# START # +echo -e "Please Enter the IP Address to Ping: \c" +read -r ip +until ping -c 3 $ip +do + echo "Host $ip is Still Down" + sleep 1 +done + +echo "Host $ip is Up Now" + +# END #