summaryrefslogtreecommitdiff
path: root/bashs/shell scrips/check
diff options
context:
space:
mode:
authordcc <dcc@logografos.com>2023-05-27 21:45:28 -0700
committerdcc <dcc@logografos.com>2023-05-27 21:45:28 -0700
commitbd4e72743ca24c0c380c221a6bc7376da1911f7e (patch)
tree192b6af99d8ef0d28ffa8a64504ceab77776bb26 /bashs/shell scrips/check
downloaddcc-suckless-config-bd4e72743ca24c0c380c221a6bc7376da1911f7e.tar.gz
dcc-suckless-config-bd4e72743ca24c0c380c221a6bc7376da1911f7e.tar.bz2
dcc-suckless-config-bd4e72743ca24c0c380c221a6bc7376da1911f7e.zip
first
Diffstat (limited to 'bashs/shell scrips/check')
-rwxr-xr-xbashs/shell scrips/check9
1 files changed, 9 insertions, 0 deletions
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
+