myserver1.mydomain.com
[‘java version “1.7.0_71”’, ‘Java™ SE Runtime Environment (build 1.7.0_71-b14)’, ‘Java HotSpot™ 64-Bit Server VM (build 24.71-b01, mixed mode)’]
OK, almost got this! And, I probably didn’t explain what I’m after very well. Based on the code you just provided, this is the output, e.g.:
somehost.mydomain.com
[‘java version “1.7.0_65”’, ‘OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-x86_64 u65-b17)’, ‘OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)’]
anotherhost.mydomain.com
[‘java version “1.7.0_71”’, ‘Java™ SE Runtime Environment (build 1.7.0_71-b14)’, ‘Java HotSpot™ 64-Bit Server VM (build 24.71-b01, mixed mode)’]
However, I only want records containing “Java™” returned. How do I adjust the code to do that?
Sorry, I’m being messy here. If i try this, “select(‘search’, ‘!OpenJDK|Java(TM)’)|”, I get output like this:
somehost.mydomain.com anotherhost.mydomain.com
[‘java version “1.7.0_71”’, ‘Java™ SE Runtime Environment (build 1.7.0_71-b14)’, ‘Java HotSpot™ 64-Bit Server VM (build 24.71-b01, mixed mode)’]