Re: lpr: printer: unknown printer



On Sat, May 2, 2009 at 6:08 AM, Dotan Cohen <dotancohen@xxxxxxxxx> wrote:
jaunty2@laptop:~$ ls | lpr
jaunty2@laptop:~$ ls | lp
request id is printer-5 (1 file(s))
I don't understand this pipe. Even after reading the lp and lpr
manpages I do not see how piping ls through lp gives the result that
it does. Which of the lovely manuals should I be reading?
So it worked?
What is "it" specifically? I still cannot print, if that was the question.

Did your printer output your current directory listing on a piece of paper?
That's what I meant by 'worked'

I'll be darned how I know that you can pipe into lp and lpr.
But didn't you suggest that I try that?

Rephrased - I don't remember where I learned that lp and lpr take
standard in and put it on paper.

Note that you can descend into confusing swamp if you start reviewing
docs on line.
Yes, I know! But as a mechanical engineer and not a computer
scientist, this is the only information that I have available to me.

I wasn't saying "Dont use online docs" - I was trying to say "be
careful to check that the doc you are looking at is current and
referring to your machine."

Both lp and lpr in CUPS using linuxes are 'recreations' of the
original commands.  All the older print systems like LPRNG etc had
their own similar commands and CUPS for maximum compatibility tried to
recreate the actions of them.  eg see the notes about Solaris and SysV
under lpstat? but lpinfo is CUPS only?
I am aware of thwat, which is common to most of the GNU tools, even ls
and the other terminal commands are rewrites of the original *nix
programs.

Yep - but I find most of the GNU commands are exact copies, or copies
plus a few extra options. The printing stuff is more of a hodge-
--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users




--
All you need to know about Ubuntu 9.04 Jaunty -> gconftool -s --type
bool /apps/update-notifier/auto_launch false

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: lpr: printer: unknown printer
    ...  ls | lpr ... request id is printer-5 ) ... Which of the lovely manuals should I be reading? ...
    (Ubuntu)
  • Re: Upgraded RH7.2 to FC1, but lost sendmail and lpr
    ... FC1 just fell off the support list. ... "switch-mailer" commands, which will generate a werd set symlinks into an ... > I didn't have any special sendmail and lpr configuration before. ... But simply by upgrading, ...
    (comp.os.linux.setup)
  • Re: Reading Files Byte-For-Byte
    ... >> attempting to read the file into an array. ... to be slower due simply to the additional commands required to accomplish ... I think the misunderstanding came about due to your mentioning reading the ... of printable characters, you'll need to do something else if your file data falls ...
    (microsoft.public.vb.general.discussion)
  • Re: Sement fault
    ... > %someletter that many put after the commands? ... have to download/install the source code and wander through it looking ... or reading the code to find out what it does. ... Open standards. ...
    (alt.os.linux.suse)
  • Re: lpr: printer: unknown printer
    ... Which of the lovely manuals should I be reading? ... original commands. ...  All the older print systems like LPRNG etc had ... their own similar commands and CUPS for maximum compatibility tried to ...
    (Ubuntu)

Loading