Up: SGI admin Frequently Asked Questions (FAQ)
Next: -75- How can I print to a printer with a JetDirect card?
Previous: -73- How can I use 'lp' to print to an 'lpr'-controlled printer?
Subject:   -74- How can I tell 'lp' to turn banner printing or page
                reversal off or on?
Date: 13 Nov 1994 00:00:01 EST

  'lp' controls printers via shell scripts, called 'models', which live
  in /var/spool/lp/model. When you install a printer, the appropriate
  model script is copied to /var/spool/lp/interface/<name-of-printer>.

  To temporarily change a printer's behavior, look at the manpage for
  its interface script (or, if there is none, the script itself) to see
  what options it wants, and pass them to the script with 'lp's '-o'
  option.  For example, 'lp -o"-nobanner" file' tells a "Generic
  Postscript" printer (described in the gpsinterface(1) manpage) to
  print 'file' without a banner page.

  To permanently change a printer's behavior, edit its interface
  script.  The following are true for "Generic Postscript" printers,
  but the idea is the same for others:

  - To turn banner printing off or on, change the line 'BANNER=1' to
    'BANNER=0' or vice versa.

  - To turn page reversal off or on, change the line
    'send=/usr/lib/print/lptops' to 'send="/usr/lib/print/lptops -U"'
    (note the quotes) or vice versa.

  In IRIX 5.x, you can change these settings in the printpanel. You can
  also turn banner printing off on a per-user basis by doing 'echo
  nobanner >> /var/spool/lp/settings/<printername>/<yourusername>'.

Up: SGI admin Frequently Asked Questions (FAQ)
Next: -75- How can I print to a printer with a JetDirect card?
Previous: -73- How can I use 'lp' to print to an 'lpr'-controlled printer?