mop does not ping anymore (mopping)
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
501aa0eff8
commit
bd2765c540
1 changed files with 0 additions and 0 deletions
12
old/mopping
Executable file
12
old/mopping
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#/bin/sh
|
||||
|
||||
HOST="uchusphere.dyndns.org"
|
||||
COUNT="2"
|
||||
SLEEP="2"
|
||||
|
||||
while [ true ]; do
|
||||
MESSAGE="$HOST online"
|
||||
ping -c $COUNT $HOST >/dev/null 2>&1 || MESSAGE="$HOST offline"
|
||||
echo $MESSAGE '(' `date +%H:%M` ')'
|
||||
sleep $SLEEP
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue