On Red Hat, the od command reverses the hex bytes. [lrxdusr@cdtslrx122d PatientLoadDataFiles]$ cat a 123456 [lrxdusr@cdtslrx122d PatientLoadDataFiles]$ od -cx a 0000000 1 2 3 4 5 6 \n \0 3231 3433 3635 000a
On HP-UX, it prints what you'd expect. plr02:lrxiusr:/plr02_users/lrxiusr/artdadamo> od -cx a 0000000 3132 3334 3536 0a00 1 2 3 4 5 6 \n Is this a big-endian/little-endian issue? Thanks, Arthur D'Adamo 200 Campus Drive Collegeville, PA 19426 Of: 610-244-2296 Cl: 215-872-5925