
The ECN No Name Newsletter is no longer being published. This is an archived issue.
[previous article] [next article]Cathy Curry
Under the old SunOS 4.1.x operating system, the standard command for printing is lpr. The lpr command allows you to specify a default printer by setting the PRINTER environment variable.
Under the new Solaris system, the print command is lp. Lp is a different command and provides default printer name specification through the environment variable LPDEST. For example, to set your default printer to "msa" under Solaris, you would use one of the following commands:
After your shell start up file is edited and sourced, start Mosaic. ECN has set the default print command for printing under Mosaic to lp -c . Therefore, if you choose Print from the Mosaic File menu, the Print Document dialog box will appear with the print command lp -c .
If you click the Print button, your output will go to the printer named by the shell variable LPDEST. If you have not set LPDEST, your printing may go to a system default printer.
To send your output to a different printer, you must use the
-d
option to the
lp -c
print command.
To specify a specific printer from within Mosaic,
use the left mouse button, click within the Print Command box
to bring the focus to that box and directly following the
lp -c
type
-d
lp -c -d abc3
Then click the Print button and your output will be sent to printer "abc3". From the Format for printed document: menu, If you want output printed in graphics form as viewed via Mosaic, choose the PostScript option.
To learn more about printing under Solaris, read Migrating to Solaris, written by Dave Curry. To view this document, go to the Engineering Computer Network home page (http://www.ecn.purdue.edu/ecn/). Move your mouse pointer over the title (underlined text), and single-click your left mouse button. You have now followed the link to the document.