Forum: Cfengine Help
Subject: Re: Ways to determine which files have been copied in a recursive copy
Author: matter
Link to topic: https://cfengine.com/forum/read.php?3,19304,19318#msg-19318
Well, if you are looking for a particular file to trigger something, you could
use file_auto_define.
Say you want to see if /etc/passwd is copied:
body agent control {
files_auto_define => { "/etc/passwd" };
}
Then auto__etc_passwd would be defined if /etc/passwd was copied. A pretty
slick feature if I do say so myself, which I just did.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine