help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: '/' is a special character in control section; how do I divide?


From: Christian Pearce
Subject: Re: '/' is a special character in control section; how do I divide?
Date: Mon, 25 Oct 2004 16:47:40 -0400

try this.

control:
 
    actionsequence = ( editfiles )
    two = ( ExecResult(/usr/bin/expr 4 / 2) )
 
editfiles:
 
     {
         /tmp/x
         AppendIfNoSuchLine "$(two)"
     }


On Mon, 2004-10-25 at 15:33, John Borwick wrote:
> For cfengine 2.1.10, the following deposits "/bin/sh: -c: option 
> requires an argument" in /tmp/x.  Why?  What can I do to divide numbers 
> in the control section?
> 
> control:
>          actionsequence = ( editfiles )
> 
>      two = ( ExecResult(/bin/sh -c "expr 4/2" ) )
> 
> editfiles:
>          { /tmp/x
>          AppendIfNoSuchLine "$(two)"
>          }
-- 
Christian Pearce
http://www.commnav.com
http://www.perfectorder.com






reply via email to

[Prev in Thread] Current Thread [Next in Thread]