lpr: printer: unknown printer
Florian Diesch
diesch at spamfence.net
Sat May 2 02:18:53 UTC 2009
Dotan Cohen <dotancohen at gmail.com> wrote:
>> How about something even simpler -
>> ls | lpr
>> Then
>> ls | lp
>> What happens?
>>
>> Brian
>>
>
> 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.
It prints the output of ls
> Even after reading the lp and lpr
> manpages I do not see how piping ls through lp gives the result that
> it does.
The manpage of lpr says:
| If no files are listed on the command-line, lpr reads the print
| file from the standard input.
Florian
--
<http://www.florian-diesch.de/>
More information about the ubuntu-users
mailing list