changeset 25991 | e48157b42439 |
parent 25876 | d06a6d3c66c0 |
parent 25987 | 76e62811f63b |
child 25992 | e9b05e933ddd |
25876:d06a6d3c66c0 | 25991:e48157b42439 |
---|---|
1 # |
|
2 BEGIN { |
|
3 totallines=0; matched=0 |
|
4 } |
|
5 |
|
6 /^[0-9]+ Sleeper$/ { |
|
7 matched++; |
|
8 } |
|
9 |
|
10 /^[0-9]+ Jps -m$/ { |
|
11 matched++; |
|
12 } |
|
13 |
|
14 { totallines++; print $0 } |
|
15 |
|
16 END { |
|
17 if ((totallines > 0) && (matched >= 2)) { |
|
18 exit 0 |
|
19 } |
|
20 else { |
|
21 exit 1 |
|
22 } |
|
23 } |