[CentOS] How to print

William L. Maltby BillsCentOS at triad.rr.com
Sat May 6 16:30:46 UTC 2006


On Sat, 2006-05-06 at 10:23 -0600, Collins Richey wrote:
> On 5/6/06, centos at 911networks.com <centos at 911networks.com> wrote:
> > How can I print, from the command line, a png file?
> >
> 
> Presuming that you have cups installed in the normal fashion and a
> default printer, just
> 
> cat xxx.png | lpr

BTW, for *any* process like this taht does not handle a file name on a
command line, if not fileter is needed (no concatenation, slicing,
converting...) it is always more efficient to do an I/O redirection.

  lpr <xxx.png

standard shell stuff. I propose we teach "The Right Way" (TM).

> <snip sig>

HTH
-- 
Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060506/eaa34e7c/attachment.sig>


More information about the CentOS mailing list