From bd4e72743ca24c0c380c221a6bc7376da1911f7e Mon Sep 17 00:00:00 2001 From: dcc Date: Sat, 27 May 2023 21:45:28 -0700 Subject: first --- bashs/shell scrips/check | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bashs/shell scrips/check (limited to 'bashs/shell scrips/check') diff --git a/bashs/shell scrips/check b/bashs/shell scrips/check new file mode 100755 index 0000000..49adb99 --- /dev/null +++ b/bashs/shell scrips/check @@ -0,0 +1,9 @@ +#!/bin/bash +y="$(ping -c 1 10.0.0.13)" +num=64 +if [ $Y -lt $NUM ]; then +notify-send 'SERVER IS WORRKING' +else +notify-send 'server is not working' +fi + -- cgit v1.2.3