]>
Commit | Line | Data |
---|---|---|
d1513470 | 1 | # marian.ivanov@cern.ch |
2 | # Filter error logs | |
3 | # Input - errRec.logs - text file with the list of error logs | |
4 | # Output - seg.log - text file with the seg.faults runs | |
5 | # - segout.log - text file with the output of the seg.fault runs | |
6 | # - the err.log and out.log suppose to be in the same directory | |
7 | # to get the list of logs: | |
8 | # example: | |
84ddafc8 | 9 | # |
10 | isOK=0 | |
d1513470 | 11 | nonOK=0 |
12 | rm seg.log | |
13 | rm segout.log | |
84ddafc8 | 14 | rm abort.log |
15 | rm abortout.log | |
d1513470 | 16 | for efile in `cat errRec.log` ;do |
17 | xxx=`cat $efile| grep segmentation` | |
18 | if [ -z "$xxx" ] | |
19 | then | |
20 | let isOK=isOK+1 | |
21 | else | |
22 | let nonOK=nonOK+1 | |
23 | echo nonOK=$nonOK | |
24 | echo "$efile" >>seg.log | |
25 | echo $efile | |
26 | ofile=`echo $efile| sed s_err_out_` | |
27 | cat $ofile >> segout.log | |
28 | fi | |
84ddafc8 | 29 | xxx=$xxx`cat $efile| grep Aborted` |
30 | if [ -z "$xxx" ] | |
31 | then | |
32 | let isOK=isOK+1 | |
33 | else | |
34 | let nonOK=nonOK+1 | |
35 | echo nonOK=$nonOK | |
36 | echo "$efile" >>abort.log | |
37 | echo $efile | |
38 | ofile=`echo $efile| sed s_err_out_` | |
39 | cat $ofile >> abortout.log | |
40 | fi | |
d1513470 | 41 | done; |
42 | #get the list | |
43 | echo isOK=$isOK nonOK=$nonOK |