ping-up.sh: added
This commit is contained in:
parent
6501690184
commit
ea607c0113
14
src/.local/bin/ping-up.sh
Executable file
14
src/.local/bin/ping-up.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
# ping until successful, then alert
|
||||
|
||||
while true; do
|
||||
if ping -c 1 $1; then
|
||||
echo Ping successful
|
||||
notify-send -a "ping-up" "Ping is successful"
|
||||
figlet Ping successful
|
||||
tput bel
|
||||
break
|
||||
else
|
||||
sleep 5
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user