SFTP truncates file rows after 5 characters

Posted by user294684 on Stack Overflow See other posts from Stack Overflow or by user294684
Published on 2010-03-16T11:14:52Z Indexed on 2010/03/16 11:46 UTC
Read the original article Hit count: 162

Filed under:

I have a script that retrieves a file via SFTP, in some cases (hard to reproduce) the file arrives with only the 5 first characters of each row. Example:

<?xml
<resu
</res

Instead of :

<?xml version="1.0"?>
<results>
</results>

What can cause such behaviour?

© Stack Overflow or respective owner

Related posts about sftp