A/UX: Transferring Binary Data to Macintosh OS (8/94)


I want to transfer UNIX files that contain binary data (but are not executable) to the Macintosh environment. Normally, the linefeeds in these files are converted to carriage returns, but I don't want to let that happen. Any hints?

By default, the A/UX file manager converts a line feed into a carriage return when copying a "TEXT" file from an A/UX partition to a Macintosh HFS partition. If the source file was binary executable or a non-executable data file, A/UX file manager copies it intact (without conversion).

In this case, make sure the source file that's going to be copied from an A/UX partition is a Non-TextEditor document (although you want to make sure it IS binary data). The file type can be shown by "Get Info" or the icon on the desktop.

If you are sure it's binary data but you are shown a "TextEditor" document, you have to use the A/UX "setfile" (set attributes for Macintosh files) utility to change its type and creator.

Here is an example: the /usr/lib/font/ftS is a binary data file, but it shows a "TextEditor" document via "Get Info" or icon. Before copying it (without any conversion) to a Macintosh OS HFS partition, do the following to change its file type to binary and creator to A/UX:

# setfile -t"BIN " -c"A/UX" ftS

NOTE: The file type and creator must be exactly 4 characters long including SPACES.


Article Change History:
23 Aug 1994 - Reviewed and updated.
23 Aug 1991 - Reviewed.

Support Information Services


Published Date: Feb 18, 2012