help-cfengine
[Top][All Lists]
Advanced

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

Re: shellcommands returns 256, not 0


From: Marion Hakanson
Subject: Re: shellcommands returns 256, not 0
Date: Mon, 19 Apr 2004 16:51:35 -0700

David Kewley wrote:
> Unfortunately, IsDir seems to need an explicit directory string, as in
> 
>   IsDir(/etc)
> 
> It seems you can't do:
> 
>   control:
> 
>     etc_dir = ( "/etc" )
> 
>   classes:
> 
>     have_etc = ( IsDir($(etc_dir)) )
> 
> I tried that and also using IsDir("$(etc_dir)").  Neither worked; the class 
> never got defined.  IsDir(/etc) worked fine.

Try IsDir(${etc_dir}).  Unexpected things happen if you use "(" or ")" inside 
those builtin functions.

Regards,

-- 
Marion Hakanson <hakanson@cse.ogi.edu>
CSE Computing Facilities






reply via email to

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