On Fri, Nov 18, 2011 at 7:27 PM, Evuraan <evur...@gmail.com> wrote: > greetings! > > running cfengine2, I wanted to know if i can copy a file only if it > does not exist.
you could negate the FileExists(file) function (http://cfengine.com/manuals/cf2-Reference.html#FileExists). untested example: classes: missingfile = ( !FileExists(/path/to/file) ) copy: missingfile:: source dest .... -- natxo _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine