PCSC
Boston University
 

Print Commands

Printing a file
The 'lpr' command sends a specified file to be printed on the default printer at 111 Cummington Street. Type:

        % lpr filename

Changing printers
As mentioned above, output is directed to the default ACS printer unless you specify a substitute. If you choose to print on an alternative printer, you must specify that printer. For example:


     % lpr -Ppubps filename

directs the output to printer pubps.

You can change the printer for the duration of your current session by setting the print environment. For example:

	 % setenv PRINTER pubps

temporarily directs all output to printer pubps. You can make this change permanent, if you wish, by adding the same command to your .cshrc file.

Printing a man page
You can pipe the display of a man page to the lpr program:


        % man topic | lpr

Print text with special options
The "enscript" program reads in a plain text file, con- verts it to PostScript, and sends it to a PostScript printer.
        % enscript -ffontfontsize -FHfont -bHeader file
Font, fontsize, Hfont, and Headers are enscript options. See the enscript man page for details on their use.