[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: printing from the cli and mailcap



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-06-06 17:27, Damon L. Chesser wrote:
> On Fri, 2008-06-06 at 11:13 -0400, Damon L. Chesser wrote:
>> Working on another issue, I wanted to print a README. 
>>
>> damon@dam-main:/usr/share/doc/migrationtools$ print ./README
>> Warning: unknown mime-type for "./README" -- using "application/*"
>> Error: no "print" mailcap rules found for type "application/*"
>>
>> A quick look at mailcap showed I really did not want to dive into there
>> yet :)
>>
>> I am using cupsys to print to a lpd network printer.  I never tried to
>> print from the cli before, how do you do it? 
> 
> Never mind.  I did not want to spend any time deciphering that above
> file.  But I did a quick google:  how to print cli cups and found this
> 
> http://www.g-loaded.eu/2005/11/10/using-a-cups-printer-from-command-line/
> 
> and tried this:  lpr README and what do you know?  It printed!
> 
> I knew about lpr, but having never set up lpr (always used cups) I did
> not know that would work.  So, I got it printed and did not spend a lot
> of time trying to figure it out.

You might also try a2ps. It can also 'pretty-print' your output.

Johannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFISYvuC1NzPRl9qEURApoNAJ4oITOj+DzzL2smMdyRM/RQJ6cE8wCfYr6K
yP79yeIOCVQ9upQZ/3oIw+U=
=XK7z
-----END PGP SIGNATURE-----


Reply to: