Re: more details

From: Nick Landsberg (hukolau_at_NOSPAM.att.net)
Date: 06/02/04


Date: Wed, 02 Jun 2004 18:39:47 GMT

Xiaoshen Li wrote:

> Thank you very much for the help. Here I try to provide more details
> related to my previous question.
>
> I use Red Hat Linux 7.3 KDE3.0. The printer is Laser5P. Printer is
> shared by the whole office, so it is connected through network to my
> computer. I don't know how the printer was setup in my computer.
> Somebody set it up before I came. The size of paper in the printer is
> the regular size. I am just printing a long ascii file.
>
> Every Linux/Unix book talks about lpr for printing, nothing else. So I
> didn't know enscript. I ran into this name a few days ago on Google.
> Since somebody has suggested me about that, I am going to download it
> and give a try.
>
> Thank you again for your help.
>

"lpr" is really dumb and is just a printer-spooler
as far as I know. If you send it stuff without
pagebreaks, it will print without page-breaks and
you will most likely get stuff which should have
been printed in the margins getting lost.

try something like

pr foo.txt | lpr

see "man pr" for the options on how to
control the lines per page and such
(default = 66 lines total with a 5 line header, 5 line
trailer).

-- 
"It is impossible to make anything foolproof
because fools are so ingenious"
  - A. Bloch


Relevant Pages

  • Re: How to access an IP printer upstream through a firewall router
    ... That LPR resource was NOT installed by ... Printing did NOT work if I established a "printer" in this outer-net XP ... computer along the lines of "network printer" ... ... On the client, you won't find LPR printers in "Network Places" since ...
    (microsoft.public.windowsxp.network_web)
  • Re: printer software
    ... install kdeprint and use that instead of lpr in your ... How does one then swap lpr for kdeprint? ... Maybe you can configure kprinter as a drop-in replacement for lpr ... You did not say what application you are printing from. ...
    (Ubuntu)
  • printing problems with Fedora
    ... Printing via "lpr" seems to be shifted a little bit to the left and a ... Using "enscript" or "a2ps" seems OK, ...
    (Fedora)
  • printing problems after Fedora Core 2 upgrade
    ... Printing via "lpr" seems to be shifted a little bit to the left and a ... Using "enscript" or "a2ps" seems OK, ...
    (Fedora)
  • Re: Problem while printing two Simultaeous documents
    ... i am printing the postscript document from the command line like lpr ... The problem is, after invoking the first request, the printer prints ... The "lpr" command you mentioned ... i tried printing the postscript document with cntrl-D. ...
    (comp.lang.postscript)