The "-o prettyprint" option to the lp command may not work properly in Red Hat Enterprise Linux
Issue
-
lpr -o prettyprint -P printername filenameis 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 -pbut 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
