Using Printers in Solaris

Posted on May 8, 2008

  • Set your own default printer: setenv PRINTER printername (e.g. “setenv PRINTER printer1″). If you submit your printing job without specifing printer name, the default printer will be used. You may add this line to your “local.cshrc” file.
  • Using command line to print files: lpr -Pprintername filename or lp -d printername filename. Both commands print filename to printer printername. Without “-P” (for lpr) or “-d” (for lp) option, the default printer will be used.
  • Print text file: printP testfilename portrait orientation or print testfilename in landscape orientation.
  • Print PS (PostScript) file in 2-column format pages (2 pages per sheet of paper): prt2p psfilename.
  • If you make changes in your “local.cshrc” file, you’d better logout, then login. After login, your changes become active.
  • Pls be noticed that the example in this article is under the tcsh environment!

    Popularity: 1% [?]

    Related Posts:

    » Filed Under Linux

    Comments

    Leave a Reply