help-cfengine
[Top][All Lists]
Advanced

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

variables in functions like FileExists


From: Viraj Alankar
Subject: variables in functions like FileExists
Date: Mon, 28 Nov 2005 22:53:11 -0500

Is there a way to use variables in functions like FileExists()? For
example, this does not seem to work:

control:
  jdk150_home = ( "/usr/local/java/jdk1.5.0_02" )

classes:
  have_jdk150 = ( FileExists("$(jdk150_home)") )

I would like to avoid duplicating the pathname string, and will be
using this variable elsewhere as well. Is there another way I should
approach this?

Thanks,

Viraj.




reply via email to

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