Thanks, I’ll try this. However, your snippet “looks” like it will output the result of the command “after” the command has been executed? I’m interested in echoing the output as the shell script is executing. Chris From: Fitzwater, Brian K (CTR) [mailto:
You could use Mixlib::ShellOut. https://github.com/chef/mixlib-shellout I use Chef::Log to output to the console, for example: find = Mixlib::ShellOut.new("find . -name '*.rb'") find.run_command Chef::Log.info “Find results: #{find.stdout}” --fitz I have a ruby_block that just executes a shell script. How do I get Chef to echo its output to the console? Will using a bash resource do it? Chris |
Archive powered by MHonArc 2.6.16.