mirror of
https://github.com/techarkit/shell-scripting-tutorial.git
synced 2025-07-25 01:28:51 +00:00
20 lines
373 B
Bash
20 lines
373 B
Bash
#!/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 #
|