Shell allows me to escape back-tick: $ echo "/var/log/syslog -C 8 -a 'kill -HUP \`cat /var/run/syslog.pid\`'" /var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`'
puppet does like them: $string="/var/log/syslog -C 8 -a 'kill -HUP \`cat /var/run/syslog.pid\`'" exec{'echo string': command => "echo \" ${string} \" ", logoutput => true, path => '/bin:/usr/bin', } Warning: Unrecognised escape sequence '\`' in file /home/vc7733/quotes.pp at line 1 Warning: Unrecognised escape sequence '\`' in file /home/vc7733/quotes.pp at line 1 Notice: Compiled catalog for pubdevx-dev601.bnaint.com in environment production in 0.36 seconds Notice: /Stage[main]/Main/Exec[echo string]/returns: /var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`' And as I said earlier, no, I can't use file_line Thanks, Vadym -- 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/aee7a6c5-307f-4b55-87ac-85f205724ff4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.