Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # record-ping_cam1.sh
- ## Check 24h if Cam is alive and if error code is 1 (offline) then start record-waitfor_xxx.sh
- #
- HOST=192.168.178.xxx
- #
- ping -w 86400 -i5 $HOST 0>/dev/null
- OFFLINE=$?
- #
- if [ $OFFLINE -eq 1 ]
- then
- echo "läuft"
- else
- sudo bash /home/xxx/scripts/nocron/record-ping-waitfor_cam1.sh
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement