Hi, I want to run a command something like: *cat /tmp/aao | grep aa | wc -l* Check the output of that command, if the output is '0', I want to get a failure from puppet. I tried to use 'exec' with 'returns' but it's seem that 'returns' take the return code of the command and not the output of the command. How can I do it right?
-- 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8e6127be-3919-4769-a68f-c0e9c01a46c1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.