Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99ccc04

Browse files
author
Ankam Ravi Kumar
authored
Create untiloop.sh
1 parent 6e71b1f commit 99ccc04

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

untiloop.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
#Purpose: Until Loop Example for Host Ping
3+
#Version:1.0
4+
#Created Date: Mon May 28 22:18:52 IST 2018
5+
#Modified Date:
6+
#WebSite: https://arkit.co.in
7+
#Author: Ankam Ravi Kumar
8+
# START #
9+
echo -e "Please Enter the IP Address to Ping: \c"
10+
read -r ip
11+
until ping -c 3 $ip
12+
do
13+
echo "Host $ip is Still Down"
14+
sleep 1
15+
done
16+
17+
echo "Host $ip is Up Now"
18+
19+
# END #

0 commit comments

Comments
 (0)