no-re...@cfengine.com writes: > I think you want to change the class strcmp to a command action > instead. Then define the class as repaired or not. > http://www.cfengine.org/manuals/cf3-solutions.html
Thanks Neil. I've been playing around with this. However, I'm a bit stuck. I have a command that I want to run. What I want is this: 1. If the command succeeds with output="yes", define class "x" 2. If the command succeeds with output="no", define class "y" 3. If the command fails, define neither "x" nor "y" I want to take into account that the command may fail. There are lots of examples with if-else semantics wrt. promise_repaired and/or persist_time. But how to do if-elsif-else? PS. Using commands to create classes like this seems overly complicated. I already have the classes properly defined, I just want to make them persistent for a given amount of time. It seems I can't do that in the class promise... Cheers, -- Trond H. Amundsen <t.h.amund...@usit.uio.no> Center for Information Technology Services, University of Oslo _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine