changeset 2 | 90ce3da70b43 |
0:fd16c54261b3 | 2:90ce3da70b43 |
---|---|
1 # 1.1 04/03/08 |
|
2 |
|
3 BEGIN { |
|
4 totallines=0; matched=0 |
|
5 } |
|
6 |
|
7 /^[0-9]+ Sleeper$/ { |
|
8 matched++; |
|
9 } |
|
10 |
|
11 /^[0-9]+ sun.tools.jps.Jps -Vvml.*-XX:Flags=.*vmflags.* \+DisableExplicitGC$/ { |
|
12 matched++; |
|
13 } |
|
14 |
|
15 { totallines++; print $0 } |
|
16 |
|
17 END { |
|
18 if ((totallines > 0) && (matched >= 2)) { |
|
19 exit 0 |
|
20 } |
|
21 else { |
|
22 exit 1 |
|
23 } |
|
24 } |