[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
Single Page
Top Document: SGI admin Frequently Asked Questions (FAQ)
Previous Document: -74- Why can't lp(1) read my file?
Next Document: -76- How can I use 'lpr' instead of or as well as 'lp'?
-
Search the FAQ Archives
Single Page
Top Document: SGI admin Frequently Asked Questions (FAQ)
Previous Document: -74- Why can't lp(1) read my file?
Next Document: -76- How can I use 'lpr' instead of or as well as 'lp'?
-75- 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>'.
Top Document: SGI admin Frequently Asked Questions (FAQ)
Previous Document: -74- Why can't lp(1) read my file?
Next Document: -76- How can I use 'lpr' instead of or as well as 'lp'?
Single Page
[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
sgi-faq@viz.tamu.edu (The SGI FAQ group)
Last Update October 22 2009 @ 05:34 AM