Re: class definition by script problem

2006-04-07 Thread Michael Grubb
That did the trick, thanks! Probably should be a link to this under the classes section as well. Sorry for the waste of time, I just couldn't see the forest for the trees =] Thanks again, Michael On Apr 7, 2006, at 4:26 PM, Brendan Strejcek wrote: Michael Grubb wrote: I want to define

Re: class definition by script problem

2006-04-07 Thread Brendan Strejcek
Michael Grubb wrote: > I want to define a class based on the exit value of a script. I want > to be able to do variable substitution in the command Check out ReturnsZero in the reference. That might allow the variable interpolation. I would recommend using a module though. The interface is more s

Re: class definition by script problem

2006-04-07 Thread Michael Grubb
I forgot again, I'm running cfengine 2.1.20 On Apr 7, 2006, at 4:03 PM, Michael Grubb wrote: Ok, I have a new problem now. I want to define a class based on the exit value of a script. According to the documentation I do this: classes: myclass = ( "/path/to/script some_opts some_args" )

class definition by script problem

2006-04-07 Thread Michael Grubb
Ok, I have a new problem now. I want to define a class based on the exit value of a script. According to the documentation I do this: classes: myclass = ( "/path/to/script some_opts some_args" ) This works. But I want to be able to do variable substitution in the command string like t