source:
trunk/FACT++/start.sh@
13804
Last change on this file since 13804 was 13798, checked in by , 13 years ago | |
---|---|
|
|
File size: 405 bytes |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | CMD="$*" |
4 | |
5 | while [ true ]; do |
6 | |
7 | reset |
8 | |
9 | if [ -n "$RC" ]; then |
10 | echo LAST RETURN CODE=$RC |
11 | fi |
12 | |
13 | echo COMMAND=$CMD |
14 | echo |
15 | |
16 | $CMD |
17 | RC=$? |
18 | |
19 | echo RETURN CODE=$RC |
20 | echo |
21 | |
22 | # 134 (double corruption, abort()) |
23 | # 139 (seg-fault) |
24 | # 255 (exception, exit(-1)) |
25 | |
26 | if [ $RC == 0 -o $RC == 255 ]; then |
27 | exit |
28 | fi |
29 | |
30 | while [ -e compiling ]; do |
31 | sleep 1 |
32 | done |
33 | |
34 | done |
35 |
Note:
See TracBrowser
for help on using the repository browser.