Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi Dirk, This is a quite a good idea (to escape using ' rather than "). I will try it. Thanks a lot. Sincerely, Ghassen Cheinour. On Mon, May 26, 2014 at 3:30 PM, Dirk Heinrichs wrote: > Am 26.05.2014 15:24, schrieb Dirk Heinrichs: > > Am 26.05.2014 15:18, schrieb cheniour ghassen: > > i tried

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
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 > . There's another solution h

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread 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 . Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Sol

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi Dirk, i tried to escape but this doesn't work . thanks On Mon, May 26, 2014 at 3:15 PM, Dirk Heinrichs wrote: > Am 26.05.2014 15:09, schrieb cheniour ghassen: > > but puppet seems to not understand $2. > > > Because it's an awk variable. You need to escape it somehow (\$2, maybe). > > HTH..

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:09, schrieb cheniour ghassen: > but puppet seems to not understand $2. Because it's an awk variable. You need to escape it somehow (\$2, maybe). HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rh

[Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi everyone, In some place of my puppet script i need to direct the output of a command as an argument to another one. the commands are > exec { 'create-endpoint': > > command => "id = $( /usr/bin/keystone --os-token=admin > --os-endpoint=http://master:35357/v2.0 service-list | /bin/grep glan