- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: migrated binary data files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 10:02 AM
12-19-2000 10:02 AM
migrated binary data files
od on a single integer (1) looks like this on dynix:
00000000000 000001 000000
00000000004
after migration to hp-ux, it looks like this:
0000000 000400 000000
0000004
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 10:16 AM
12-19-2000 10:16 AM
Re: migrated binary data files
FTP has an option "binary" to set the file transfer type to binary.
Example:
# ftp 162.69.77.66
Connected to 162.69.77.66.
220 FTP server (GNU inetutils 1.3.2) ready.
Name (162.69.77.66:root): fnhalili
331 Password required for fnhalili.
Password:
230 User fnhalili logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bi
200 Type set to I.
ftp>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 10:23 AM
12-19-2000 10:23 AM
Re: migrated binary data files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 10:35 AM
12-19-2000 10:35 AM
Re: migrated binary data files
The reason is that the sequent is a "little endian" architecture and HP is "big endian" architecture. check out:
http://cache.intersys.com/downloads/documentation/cache31/docs/misc/cvendian.html
do a search on the net for "endian conversion" there are utilities out there for performing the conversion.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 11:01 AM
12-19-2000 11:01 AM
Re: migrated binary data files
always tricky. You need to take into account the machine's
word size (32-bit, 64-bit, etc.), byte ordering (big-endian,
little-endian, etc.), struct padding (if using structs), type size
(int=32bits, short=16bits, etc.), one's/two's complement
(in the old days, anyway), type alignment rules, etc.
I've translated your octal od output to binary:
Dynix:
octal: 00000000000 000001 000000
binary: 00000000000 0000 0000 0000 0001
HP-UX:
octal: 0000000 000400 000000
binary: 0000000 0000 0001 0000 0000
It seems like the bytes have been swapped. If you're lucky,
you might be able to just use "dd conv=swab" on the file to
swap bytes, or the swab() function (or something else
of your own devising) in your C program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 11:03 AM
12-19-2000 11:03 AM
Re: migrated binary data files
I agree with Kofi, there are also archive utilities you can use such as PAX to generate portable archives...
Good luck
Victor