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'? See reader questions & answers on this topic! - Help others by sharing your knowledge 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>'. User Contributions: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 March 27 2014 @ 02:12 PM
|
Comment about this article, ask questions, or add new information about this topic: