lpr: printer: unknown printer

Brian McKee brian.mckee at gmail.com
Sat May 2 00:23:17 UTC 2009


On Fri, May 1, 2009 at 10:49 AM, Dotan Cohen <dotancohen at gmail.com> wrote:
>> How about something even simpler -
>>  ls | lpr
>> Then
>>  ls | lp
>> What happens?
>
> jaunty2 at laptop:~$ ls | lpr
> jaunty2 at laptop:~$ ls | lp
> request id is printer-5 (1 file(s))
> jaunty2 at laptop:~$
>
> 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?

I'll be darned how I know that you can pipe into lp and lpr.

Note that you can descend into confusing swamp if you start reviewing
docs on line.
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?

Brian

-- 
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