Print Commands

 

FAQ: 
Useful print commands

By Colin A. Bitterfield
EX-SUN Microsystems, Inc.
Contact Me


Q. How can I print from netscape to my HP Laserjet (PCL/Text Only)
A. Use the following for the print command
     "/opt/sfw/bin/gs -q -sDEVICE=ljet4 -dNOPAUSE -sOutputFile=- - | lp "
    Notes:

  1. Must have the following packages installed: SFWgs, SFWgsfot, SFWgsfst, SFWgv
  2. This takes stdin and converts in to PCL laserjet 4 style.

Q. How can I print text nicely formatted 1 or 2 pages per sheet of paper.
A. "cat $FILE | mp -l -o | /opt/sfw/gs -q -sDEVICE=let4 -dNOPAUSE -sOutputFile=- - | lp"
Notes:

  1. This is where alias comes in very handy

 

last update on 28 Apr, 2005

[Colin's Home] [News] [Contact me] [Articles] [Solaris Resources] [Win32 Resources] [Mooniacs] [Aviation] [Photo Albums] [Family] [Private]