Am 26.05.2014 15:24, schrieb Dirk Heinrichs: > Am 26.05.2014 15:18, schrieb cheniour ghassen: > >> i tried to escape but this doesn't work . > > Hmm, try awk \'...\', like shown here > <https://ask.puppetlabs.com/question/3020/execs-onlyif-not-playing-nicely-with-test/>.
There's another solution here <http://projects.puppetlabs.com/projects/1/wiki/Firmware_Password_Patterns>, which suggests to escape the subshell call (id = \$(...) in your case). And, you can always put all the commands into an external script and call that. Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 1596666 (Ansage) 1149 *Email*: [email protected] <mailto:[email protected]> *Skype*: dirk.heinrichs.recommind www.recommind.com <http://www.recommind.com> http://www.recommind.com -- 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/53834209.4050805%40recommind.com. For more options, visit https://groups.google.com/d/optout.
