blob: 560f6e8f68b288c00d62ddcb7c89531f9ebb7316 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2BEGIN {
3 totallines=0; matched=0
4 }
5
6/^[0-9]+ Jps -m$/ {
7 matched++;
8 }
9
10 { totallines++; print $0 }
11
12END {
13 if ((totallines > 0) && (matched >= 1)) {
14 exit 0
15 }
16 else {
17 exit 1
18 }
19 }