Re: Using vars inside commands

2012-09-12 Thread André Luís Lopes
Hello, 2012/9/12 Aleksey Tsalolikhin > On Tue, Sep 11, 2012 at 7:32 PM, Diego Zamboni wrote: > > That should work fine. Are you sure the list is being properly populated? > > Check with: > > reports: > cfengine_3:: > "$(java_binary_list)"; > It was way a result of way too little co

Re: Using vars inside commands

2012-09-12 Thread Aleksey Tsalolikhin
On Tue, Sep 11, 2012 at 7:32 PM, Diego Zamboni wrote: > That should work fine. Are you sure the list is being properly populated? Check with: reports: cfengine_3:: "$(java_binary_list)"; ___ Help-cfengine mailing list Help-cfengine@cfengine.org

Re: Using vars inside commands

2012-09-11 Thread Diego Zamboni
That should work fine. Are you sure the list is being properly populated? --Diego On Sep 11, 2012, at 6:00 PM, "André Luís Lopes" wrote: Hello, I just wanted to double-check with you guys if using a var inside a command really doesn't work in CFEngine3. Example : vars: "java_binary

Using vars inside commands

2012-09-11 Thread André Luís Lopes
Hello, I just wanted to double-check with you guys if using a var inside a command really doesn't work in CFEngine3. Example : vars: "java_binary" string => execresult("/bin/ls -l /usr/java/*/bin/java | /usr/bin/awk '{print $9}' | /bin/sed ':a;N;$!ba;s/\n/,/g'", "useshell"); "java_