S
Sandro kensan
Guest
Hi,
i would like to copy on the cloud some selected files when modified. The script is this:
The problem is that inotifywait don't print the files that has been modified. It is a bug? It is my mistake?
Other example:
print only
and exits when event occurs.
i would like to copy on the cloud some selected files when modified. The script is this:
Code:
while : do
file = $(inotifywait --fromfile /tmp/list.txt --event modify --format "%w")
cp -f "$file" $HOME/cloud
done
The problem is that inotifywait don't print the files that has been modified. It is a bug? It is my mistake?
Other example:
Code:
$ inotifywait file1.txt file2.txt --event modify --format %w
Code:
Setting up watches.
Watches established.