Solaris Transition Guide

Printing troff

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

% troff filename

In the Solaris 7 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.7 troff commands.

Table 11-3 SunOS release 5.7 troff Commands

SunOS release 5.7 Command  


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