Hi, I have a text file where i get all the java version.
*cat java.txt* */usr/lib/jvm/java-1.7.0-openjdk-1.7.0.65.x86_64/jre/bin/java -version* */usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java -version* */opt/oracle/agent12c/core/12.1.0.4.0/jdk/bin/java -version* */opt/oracle/agent12c/core/12.1.0.4.0/jdk/jre/bin/java -version* */var/lib/alternatives/java -version* */u01/java/jdk1.7.0_65/jre/bin/java -version* */u01/java/jdk1.7.0_65/bin/java -version* Now i want to run commands in each line and place it in facts. How can i do that. I have just started doing the code*.* *logfile = '/home/weblogic/java.txt'line_num=0log = Facter::Util::FileRead.read(logfile)unless log.nil? log.each_line do |line| output = Facter::Util::Resoloution.execHow can i can continue thatPlease help me* -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/f801801d-e3e0-4830-ab7f-de74e90e02ce%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
