author | twisti |
Thu, 24 Mar 2011 23:04:40 -0700 | |
changeset 8863 | 6f1fc00f3bbc |
parent 2 | 90ce3da70b43 |
permissions | -rw-r--r-- |
2 | 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 |
} |