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 |
---|---|---|
Control line printer functions |
||
/etc/lp/printers/printername/* |
File that defines printer functions |
|
|
Directory where printing system stores spool and lock files |
|
Not available |
Move print queues between printers |
|
lpc down |
Stop queueing to a printer |
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 |