MD5 checksum needs to be ftp in Ascii mode & types of text files
Posted on 2011-09-08
I'm doing files transfer between my ftp client (which is a Linux box)
to a remote ftp server (on Win 2003).
The datafiles transferred in both directions come with checksum
( .md5 ) file : these checksum files are generated on the Linux
as well as on the Windows end.
From my Linux box, when I do ftp put or get of these md5 files, they
have to be in Ascii mode, else the files transferred will be unusable.
What type of text file are these md5 files? Are they Unix text file
at UNIX end & Windows/DOS text file at Windows end?
Are these md5 files just flat text files or they're indexed text files?
Are they variable length record text files or fixed record length
text files (from IBM Mainframe, HP MPE & OpenVMS days I learnt
these are the various text files available)
As I'm phasing out ftp & replacing it with sftp, can I just use
"unix2dos" on the md5 files generated at Linux end before
sftp'ing the md5 file over to Windows & vice-versa (ie after
getting an md5 file over from Windows, I do dos2unix on the
md5 file that was pulled over)?