diff options
Diffstat (limited to 'bashs/shell scrips/check')
| -rwxr-xr-x | bashs/shell scrips/check | 9 |
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 + |
