2
I use rsync (cygwin) to transfer files between server and my PC.
Rsync runs every 2 minutes, and sometimes there are some files to transfer, sometimes not. I need to execute some actions, but only if files were transferred from server to PC.
How do I know, whether files were transferred or not?
P.S. I tried to use rsync's exit codes, but it returns 0 in both when files are transfered and when they don't.
Thank you, that works great :) Can you explain what number 4 means? – temur_p – 2016-07-01T10:51:07.297
wc -l
counts the number of lines . A clean run with option-v
have 4 lines in the output. Any change has more than 4 – matzeri – 2016-07-01T12:17:11.850