Ref: 21770002
Title: Printing from an NCS/AT
Date:  4/3/91

Copyright 3Com Corporation, 1991.  All rights reserved.

To print from an NCS/AT, you must first attach and configure a printer
using the "printersetup" utility.  The "printersetup" utility allows you to
add either a parallel or serial printer.

To add a serial printer, use one of the standard serial devices available
with XENIX; either tty1a or tty2a, depending on whether or not the printer
is attached to the first or second serial port on the NCS/AT, respectively.
Attachment is made via the 9-pin (male) connector on the serial port of the
NCS/AT.

To add a parallel printer, select a standard parallel device of lp1 (lp0 for
Wyse 286 PCs) or lp2, again depending on whether or not the printer is
attached to the first or second parallel port on the NCS/AT.  Attachment is
made via the DB-25 pin (female) connector on the parallel port of the NCS/AT.

To print data, use the "print" utility.  The syntax is

    NCSAT2% print -d[printername] [filename]

You can also use the XENIX pipe character "|" to send the output of a
command to the printer.  For example, if you wanted to print a record
of audit.<mmdd> files in the /usr/NCS/AUDIT_TRAIL directory, you could
issue the following command:

    NCSAT2% ls /usr/NCS/AUDIT_TRAIL | print

or you could first send the results to an output file, then print the
file contents.  In the following example, the output file, called
atfiles, has already been created in the AUDIT_TRAIL directory using the
XENIX "touch" command (also executable from an NCS/AT utility prompt):

    NCSAT2% ls /usr/NCS/AUDIT_TRAIL > atfiles
    NCSAT2% print atfiles

