lycheesync icon indicating copy to clipboard operation
lycheesync copied to clipboard

Add inotify support (can be run as a deamon on startup)

Open GustavePate opened this issue 9 years ago • 3 comments

GustavePate avatar May 28 '15 09:05 GustavePate

an easier method might be to do something along the lines of:

while newfile=`inotifywait ...`
do
  lycheesync ... $newfile ...
done

I do something similar to enforce a certain permission policy on directories (under certain shared directories I want files to always belong to a certain group and the group should always have the same permissions as the owner). If you are interested I will post the script as an example.

Enoch247 avatar May 29 '15 03:05 Enoch247

Hi Enoch, I'm interested with your script. I intend to bascially code the loop your describe inside lycheesync's main function (behavior to be conditioned by a command line switch)

GustavePate avatar May 29 '15 09:05 GustavePate

here is the script: https://mechbits.com/owncloud/index.php/s/MnyHfb8IhCSCD0N

Enoch247 avatar May 31 '15 13:05 Enoch247