Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # record-ping-waitfor_cam1.sh
- # Check if Cam is alive again, if yes (ping exit code 0) then execute record-ping-reconnect_xxx.sh
- #
- HOST=192.168.178.xxx
- #
- ping -w 86400 -i5 $HOST 1>/dev/null
- ONLINE=$?
- #
- if [ $ONLINE -eq 0 ]
- then
- echo "nicht erreichbar"
- else
- sudo bash /home/xxx/scripts/nocron/record-ping-reconnect_cam1.sh
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement