lpr: printer: unknown printer

Brian McKee brian.mckee at gmail.com
Sat May 2 16:01:42 UTC 2009


On Sat, May 2, 2009 at 6:08 AM, Dotan Cohen <dotancohen at gmail.com> wrote:
>>> jaunty2 at laptop:~$ ls | lpr
>>> jaunty2 at 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 at lists.ubuntu.com
> 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




More information about the ubuntu-users mailing list