equal
deleted
inserted
replaced
|
1 # |
|
2 BEGIN { |
|
3 totallines=0; matched=0 |
|
4 } |
|
5 |
|
6 /^[0-9]+ Jps -Vm.* \+DisableExplicitGC$/ { |
|
7 matched++; |
|
8 } |
|
9 |
|
10 { totallines++; print $0 } |
|
11 |
|
12 END { |
|
13 if ((totallines > 0) && (matched >= 1)) { |
|
14 exit 0 |
|
15 } |
|
16 else { |
|
17 exit 1 |
|
18 } |
|
19 } |