help-cfengine
[Top][All Lists]
Advanced

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

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


From: John Borwick
Subject: '/' is a special character in control section; how do I divide?
Date: Mon, 25 Oct 2004 15:33:24 -0400
User-agent: Mozilla Thunderbird 0.7.3 (X11/20040901)

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)"
        }

--
           John Borwick
       System Administrator
      Wake Forest University | web  http://www.wfu.edu/~borwicjh
      Winston-Salem, NC, USA | GPG key ID             0x797326D5

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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