| 1 | #!/bin/sh |
| 2 | |
| 3 | # Tiny script that re-lunches ITGRecv in case it dies... |
| 4 | cd /opt/ditg/bin |
| 5 | while [ 1 ] |
| 6 | do |
| 7 | date=`date` |
| 8 | |
| 9 | echo "-------------------------------" |
| 10 | echo "[$date] Starting ITGRecv" |
| 11 | ./ITGRecv -l /dev/null -Sp 3000 |
| 12 | |
| 13 | # If you want to get an email alert when this happens, uncomment the following line: |
| 14 | # echo "ITGRecv has crashed on: $date" | mail -s "ITGRecv has crashed" [email protected] |
| 15 | |
| 16 | sleep 10 |
| 17 | done |