A/UX is AT&T System V Release 2 -- the same as the customer's AT&T 3B2 system. If something works for the A/UX system, there should be a way to make it work with the AT&T 3B2. Apple has successfully connected LaserWriter IINTs to A/UX systems and used the A/UX lp print spooler. A/UX does not use the Berkeley extensions for printing.
When printing to a PostScript device, A/UX uses a script located in /usr/spool/lp/model/psinterface. The script used by the 3B2 should be similar, if not identical, to the A/UX version.
The PostScript file going to the printer must have a first line that begins with:
%!PS-Adobe-
or the LaserWriter IINT won't know what to do with it. Since using cat to send the file directly to the printer works fine, we can assume that the original file is OK and that the connection between the computer and the printer is good.
An error is most likely to be introduced when the psinterface script assigns a magic number to the file being printed. Normally, the magic number for a file is derived from the first few characters of the file, which are then matched against the /etc/magic file to return some information about the contents of the file.
However, the psinterface script assigns its own magic number to the file being printed. Psinterface cuts the first eleven characters from the file to be printed and uses a case statement to assign a magic number to the file. Depending on what that magic number is, psinterface does something different with the file.
In the A/UX version of psinterface, this section of the script reads as:
case "$magic" in
%!PS-Adobe-) rev=1 ;;
Check the 3B2 version of the script and see if these lines match. If they don't, try changing the 3B2 version to match the A/UX version.
Article Change History:
25 Jan 1996 - Changed title to reflect proper product name.
22 Aug 1995 - Made minor corrections.
08 Sep 1994 - Reviewed and reformatted.
Support Information Services