| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # Tiny script that re-lunches ITGRecv in case it dies... |
| 4 | cd /opt/ditg/binscip-shell filesystem . . `/opt/ditg/bin`. |
| 5 | while [scip-shell system . . `[`. 1 ] |
| 6 | do |
| 7 | date=`datescip-shell system . . date.` |
| 8 | |
| 9 | echoscip-shell system . . echo. "-------------------------------" |
| 10 | echoscip-shell system . . echo. "[$date] Starting ITGRecv" |
| 11 | ./ITGRecv -l /dev/nullscip-shell filesystem . . `/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 | sleepscip-shell system . . sleep. 10 |
| 17 | done |