Solaris 1.x to 2.x Transition Guide

Using SunOS Release 5.6 Printer Administration Commands

This section describes differences between printer setup and administration on SunOS release 4.x and Solaris 2.6 systems. All the underlying system services described are available only in the Solaris 2.6 operating environment. The SunOS release 4.x counterparts are not available even in compatibility mode.

You must use the System V printer administration commands, lpadmin(1M) and lpsystem(1M) instead. Use the terminfo database and the configuration files in the /etc/lp directory instead. See System Administration Guide for details.

Table 11-2 shows the command equivalents for setting up printing.

Table 11-2 Printer Administration, Setup, and File Equivalents

SunOS release 4.x 

SunOS release 5.6 

Function 

lpc

lpadmin

Control line printer functions 

/etc/printcap

terminfo database and

/etc/lp/printers/printername/*

File that defines printer functions 

/var/spool

 

/var/spool/lp

Directory where printing system stores spool and lock files 

Not available 

lpmove

Move print queues between printers 

lpc down

reject

Stop queueing to a printer 

Printing troff

In the SunOS release 4.x software, you need the following command to send a troff file to the default printer.

% troff filename

In the Solaris 2.6 operating environment, you must specify that you want the file printed by piping (|) the output to the lp command. Table 11-3 shows the SunOS release 5.6 troff commands.

Table 11-3 SunOS release 5.6 troff Commands

SunOS release 5.6 Command  

Function 

troff file | /usr/lib/lp/postscript/dpost|lp

Sends to default printer that supports troff jobs 

troff file| /usr/lib/lp/postscript/dpost|lp -d printer

Sends to a particular printer 

troff file | lp-Ttroff

Sends to any printer that supports troff jobs