How do you do a backtick inside an exec?
eg:
exec { Testworld:
command = /bin/echo hello `cat /etc/hostname` /tmp/hello.txt,
}
Thanks,
Matt
--
You received this message because you are subscribed to the Google Groups
Puppet Users group.
To post to this group, send email to
On Dec 6, 2010, at 3:55 AM, Matt Keating wrote:
How do you do a backtick inside an exec?
eg:
exec { Testworld:
command = /bin/echo hello `cat /etc/hostname` /tmp/hello.txt,
}
In general, you can't because that would need to be run by a shell, not by
puppet. If you want to do