The "-o prettyprint" option to the lp command may not work properly in Red Hat Enterprise Linux

Solution Unverified - Updated -

Issue

  • lpr -o prettyprint -P printername filename is not working.

    We are using this command to get prettyprint options with header at the top of each page with the page number, job title, filename, etc. In RHEL (Red Hat Enterprise Linux) 5 this option is working fine but after migrating to RHEL 6 this option has stopped working.

    We have tried with lpr -p but the same problem occurs.

    If I put /* in the begining of the file then I can print out corectly with -o prettyprint

Environment

Red Hat Enterprise Linux 6
Red Hat Enterprise Linux 5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content