|
top
Parallel Printer
The first step is to make sure that Unix can print to the
printer.
smit can be used to setup the parallel printer in Unix.
Example:
smit
Devices
Manage Local Printer or Printer/Plotter Devices
Printer/Plotter Devices
Change/Show Characteristics of a Printer/Plotter or Add a
Printer/Plotter
-
Select desired printer.
-
PORT number must be p
-
Number of COLUMNS and LINES per page should be 999.
-
You must relinquish a serial line for a parallel printer in PICK.
Enter the following in the dm,md,
user-coldstart
01 n
02 !exec ap -52 -t lp0 -pprinter&
03 startptr 0,0,0,s52
n
indicates a non-stop macro
s52 is
the PICK port
lp0 is
the parallel printer device in smit
top
Serial Printer
smit can be used to setup the serial printer in Unix.
Example:
smit
Devices
TTY
Change/Show Characteristics of TTY
The LOGIN must be disabled for the tty being used as the serial printer.
Two ways to create a serial printer
in Pick.
You can only
use only the first way or the second way. Not both ways at the same time.
First:
Enter the following in the dm,md,
user-coldstart
01 n
02 !exec ap -50 -t tty50 -printer&
03 startptr 1,1,0,s50
Second:
Add the following to the /etc/inittab in Unix
pick050:2:respawn:ap - 50 -t tty50 -printer
top
Shared Printer
The first step is to make sure that the printer will print from Unix
Using the lpstat command in Unix make sure the Unix Spooler and a queue is started.
The following examples show how to set up the
two different shared printers.
One on port 126
and the other on port 127
Enter the following in the dm,md, user-coldstart
startshp 1,1,0,s126,lp.unix
This starts the printer on the shared printer
using the default Unix queue lp0
startshp 2,2,0,s127,lp.unix,(lp -dlp1)
This printer must specify a complete lp command since the output is sent to the non default Unix
queue lp1
To kill a shared printer, type:
shp-kill pick.printer.number
Troubleshooting
-
Use the shp-status command to see if PICK
sees the printer.
-
Check the Unix queue by typing
lpstat. The queue should show as Ready.
-
Check the Pick printer by typing sp-status at
TCL, noting the line.number on which the printer is
started.
-
Type ' pid port#' at TCL. This command should show a non zero
PID.
-
Check to see if the filter process is up, by typing ps
-ef | grep lppick.
To use remote printers, specify the
Unix command (lpr) in the startshp command.
To send printer output to a Unix file use the following example:
startshp 1,1,0,s126,lp.unix,(cat >> /tmp/print) (s
top
|