You have to double escape shell inclusions - "$$(hostname -i)"

On Thu, Feb 25, 2016 at 2:19 PM, Philippe Lafoucrière
<[email protected]> wrote:
>
> On Thu, Feb 25, 2016 at 2:07 PM, Clayton Coleman <[email protected]>
> wrote:
>>
>> Isn't your env var WORKER_ID?  You only need the shell if you're
>> trying to use curly braces.  The parenthesis syntax is supported by
>> kube.
>
>
> Sorry, typo, it's definitely WORKER_ID (but not working better).
> Ok, I confirm it's working with parenthesis, otherwise:
>
> PID   USER     TIME   COMMAND
>     1 root       0:00 /bin/sh -c /nsqd --broadcast-address=`hostname -i`
> --lookupd-tcp-address=${NSLOOKUPD_SERVICE_HOST}:${NSLOOKUPD_PORT_4160_TCP_PORT}
> --worker-id=${WORKER_ID} --data-path=/data
>
> My issue is actually with `hostname -i`, even with $(hostname -i), it's not
> expended.
>
> thanks

_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to