Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # record-reboot-ping_cam1.sh
- # Check if Cam is alive since reboot and if error code is 1 (offline) then start record-ping-reboot-waitfor_xxx.sh
- # and save ping's PID to file
- #
- IPCAM=address
- ping -w 86400 -i2 $IPCAM 0>/dev/null
- OFFLINE=$?
- if [ $OFFLINE -eq 1 ]
- then
- echo ""
- else
- bash /home/xxx/scripts/record-ping-reboot-waitfor_cam1.sh
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement