Hi,
I have a problem with ExecResult. What I want to do:
cf.main: policyhost = ( ExecResult(/bin/hostname -i | /usr/bin/awk
-F"." '{ print $1"."$2"."$3"."200 }') )
What it does is:
cf.main: policyhost = ( ExecResult(/bin/hostname -i) )
I.e. it reads the string within ExecResult only to the pipe. The same
remains true if I change it to ExecResult(/bin/sh -c " ... ").
Any hints?
I am using GNU cfengine 2.2.0.
Greetings,
Marc
--
** Disclaimer: My views/comments/beliefs, as strange as they are, are my
own.**
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine