Camerodity <[email protected]> writes: > Hello all, > > I am currently trying to setup a Custom Fact that will can be used to > determine the version of the > Java JRE running on a machine, in order to use it in my manifests to ensure > the proper JARS are > distribured based on environment. I'm trying to use the java -version command > and then capture the > JRE release (eg "1.6.0_37"). No matter what I have tried, the output is > always the full display > from the Java -version command. Has anyone done this or something similar > before? Any suggestions? >
Hard to know for sure without seeing any code. Have you checked that it's going to stdout? java -version 1> 1.txt java -version 2> 2.txt Also, perhaps looking at the package (rpm, deb, etc..) installed would be more effective? -- Kyle Sexton -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
