summaryrefslogtreecommitdiff
path: root/bashs/shell scrips/check
blob: 49adb99a7a506e61dc07e205a9ec969ce00178d2 (plain) (blame)
1
2
3
4
5
6
7
8
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