transferring binary files between systems
Posted
by tim
on Stack Overflow
See other posts from Stack Overflow
or by tim
Published on 2010-06-15T16:13:54Z
Indexed on
2010/06/15
17:02 UTC
Read the original article
Hit count: 190
Hi guys
I'm trying to transfer my files between 2 UNIX clusters, the data is pure numeric (vectors of double) in binary form. Unfortunately one of the systems is IBM ppc997 and the other is AMD Opteron, It seems the format of binary numbers in these systems are different.
I have tried 3 ways till now:
1- Changed my files to ASCII format (i.e. saved a number at each line in a text file), sent them to the destination and changed them again to binary on the target system (they both are UNIX, no end of line character difference??!)
2- Sent pure binaries to the destination
3- used uuencode sent them to the destination and decoded them
Unfortunately any of these methods does not work (my code in the destination system generates garbage, while it works on the first system, I'm 100% sure the code itself is portable). I don't know what else I can do? Do you have any idea? I'm not a professional, please don't use computer scientists terminology!
And: my codes are in C, so by binary I mean a one to one mapping between memory and hard disk.
Thanks
© Stack Overflow or respective owner