Forum: Cfengine Help
Subject: Command execution for each copied file
Author: nico
Link to topic: https://cfengine.com/forum/read.php?3,17932,17932#msg-17932
Hello,
I have the following config:
---------------------
bundle agent interfaces
{
"/etc/foobar/"
copy_from => rcp_if("/srv/cfengine-source/etc/foobar/"),
depth_search => recurse("inf"),
action => immediate;
}
body copy_from rcp_if(file)
{
servers => { "notarealserver.example.com" };
source => "$(file)";
preserve => "true";
purge => "true";
copy_backup => "false";
compare => "digest";
}
------------------------
I would like to execute a script on each file that is created/changed/deleted
like this "myscript.sh file_that_have_changed".
How do I do this?
Grateful for any tips and pointers in the right direction :)
/Nico
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine