matrixmadhan,
Quote:
Just to be clear, is that getting terminated during transfers ( rsynce'd) or only during checksum process ?
Rsync runs to completion. At the time of termination, It's in a loop of getting the md5sums and checking the source against the destination file. The weird thing is that it exits at random points in the loop. This is where your suggestion of strace will probably come in quite handy. To be honest I haven't used it in years, and didn't consider it in regard to using for a script. Every time I'd used it in the past it was for compiled programs. Thanks for the brain slap!
In almost 20 years of programming, I've never had a script do this before. It's always been traceable to the code itself. I.E. programmer error.
fpmurphy:
Quote:
Does your script run to completion if you remove the md5sum validation code?
Yes it does finish without the md5sum. Thanks, I had highly suspected md5, but never ruled it in or out by removing it. The rest of the code in the loop just check if the file exist and if the md5sums are the same. Based on switches, either removes, or leaves the source file.
Thank you both. I'll let you know what I find with the strace.
MPH