Re: Printing

From: mj (nobody_at_nospam.net)
Date: 01/13/04


Date: Tue, 13 Jan 2004 18:00:17 +0200

Prakash Countcham wrote:
> mj wrote:
>
>> Add the line "alias lpr='lpr -h'" (without the double quotes) in
>> your .bashrc file.
>
>
> Thanks, but some commands and applications don't execute a shell to
> print. Isn't there a config file for lpr ?
>

Actually I think there is, at least for the version which I am using.
(My version of lpr doesn't have an -h option. It is not documented in
the lpr manual page and while lpr accepts it, it doesn't seem to do
anything.)

If you say,

strace -e trace=open lpr file_to_be_printed

you can see which files lpr opens (or tries to). At least on my system
one of them is .lpoptions. See "man lpoptions" for more.



Relevant Pages

  • Re: Printing error with cups 1.2.12
    ... For example: lpr -o portrait image.jpg ... that prints portrait but it doesn't explain why "lpr image.jpg" prints landscape. ... To see if it is a user default, run 'lpoptions -p queuename' -- it will ...
    (Fedora)
  • Re: Printing
    ... >> your .bashrc file. ... but some commands and applications don't execute a shell to ... Isn't there a config file for lpr? ... You could instruct these programs to execute -say- lpr2 which is a sh ...
    (comp.os.linux.setup)
  • Re: piping output to printer
    ... I'll guess ls | lpr ... it prints on my HP 1012 printer with a large courier font. ... If use cups, then try the command lpoptions, it will show the current options ... You can set a new value when printing. ...
    (alt.os.linux)
  • Re: How to set print quality with lpr? (I.e. 360 dpi vs. 720 dpi)
    ... >> Are you using BSD lpr, LPRng, or CUPS' own lpr? ... Then you can use the 'lpoptions' program and/or the '-o' switch on ... Any of those options can also be specified on the lpr command line ... you can even specify different options ...
    (comp.os.linux.misc)
  • Re: piping output to printer
    ... I'll guess ls | lpr ... it prints on my HP 1012 printer with a large courier font. ... lpoptions -l will show supported options. ... You can set a new value when printing. ...
    (alt.os.linux)