* Resending in case this message didn't get through initially *
I am researching options of setting up a folder sync and it seems now that the
"%%" option (Manuel 3.4.5 - Actions) doesn't work. In the actions section, I
want to run a script that chown's the synced files to a specific user/group.
Here's my config:
exclude *~ .*;
exec "/apps/knime/csync2/set_perms.sh %%";
Here is the triggered script:
# Chown KNIME folders after csync run
# Source env file to see what machine we execute on
# Check incoming arguments
if [[ $# -lt 1 ]]; then
echo "There are no paths passed to script"
# Do the job
for i in $@; do
chown -R $USER:$USER $i
echo "File $i chowned"
As the sync is triggered, the script is executed, but it exits at the
+ [[ 0 -lt 1 ]]
+ echo 'There are no paths passed to script'
There are no paths passed to script
+ exit 1
I've tried doing basic "echo file changed: %%", but that also doesn't work.
Why does that happen?
I am running csync2 version 1.34 (csync2-1.34-15.el6.src.rpm) on RHEL6 from the
Appreciate any help.
EPAM Systems, Russia
Csync2 mailing list