Yes, maybe, it can be because there are multiple rsync pids and this:William wrote:Ah, so its because the pid of rsync is changing as copying proceeds? So CPPID won't be holding the correct rsync pid value when the 'while running loop' checks to see if rsync process finished yet (so it wrongly thinks rsync process is complete once the first rsync CPPID value is no longer detected as 'running' and thus moves on to the clean up stuff, which it shouldn't...).
Code: Select all
while running $CPPID; do
Have to run now, get back tonight.
Fred