14

Difference in file sizes being copied by scp. HELP!

view full story
linux-howto

http://www.unix.com – Hello All, I am transfering a gzipped file from LINUX to LINUX using scp -C comand. It is a nightly job, called by crontab. After copy finishes, the file sizes are different between source and destination. Say .gz file is 14782805941 bytes on source and 13496172544 bytes on destination. When I gunzip it I get an error message "unexpected end of file'. However, when i type EXACTLY the same command from prompt, scp runs ok and both files are the same size. I run md5sum check against both files. Everything is ok when I start scp manually, and I get corruption when same command is r (HowTos)