Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- #
- DEST="ya.ru"
- while [ 1 ]
- do
- STTS=`ping -c 3 -s 1000 $DEST |grep received | awk -F, '{print $2}' |awk '{print $1}' `
- if [ $STTS -eq 3 ]; then
- echo '${color1}online${color}'
- else
- echo '${color3}offline${color}'
- fi
- sleep 10
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement