You are here: Home Help/User Support Systems (Windows, Mac, Unix) Unix and Linux Printing to CAE Lab Printers

Printing to CAE Lab Printers

All computers in the CAE Laboratory have access to both the HP LaserJet 4000PS and the Color LaserJet 4600DN printers. Use the following instructions for examples of how to print to these printers.

Printing with mpage

mpage is a printing utility that prints standard text and Postscript files with several options including headers, date/time stamping, and printing multiple pages of text onto a single sheet to conserve paper.

Normal usage of mpage would be a command similar to the following:

    mpage -2 -P- -H -f filename1 filename2 filename3 | printcommand

Which would print the files filename1, filename2, and filename3 with headers at the top of the page, folding long lines at the margin, and 2 pages of content on each sheet. More detailed instructions for specific printing cases from the Sun and GNU/Linux workstations is given below.

Type mpage -? to see other options.

Printing from Sun Workstations

To send a print job to the laser printer:

    mpage -2 -P- -H -f filename1 | lp

To send a print job to the color printer:

    mpage -2 -P- -H -f filename1 | lp -d color

Printing from GNU/Linux Workstations

To send a print job to the laser printer:

    mpage -2 -P- -H -f filename1 | lpr

To send a print job to the color printer:

    mpage -2 -P- -H -f filename1 | lpr -Pcolor
Filed under: ,