Just do the opposite of the below...The info below turns headers off but it has good info on what is done with the commands........ You
usually set headers when you define a printer....or change/show printque ..
Change / Show Default Print Job Attributes has the header attributes that you
set up before you print... Same with remote printers if you set them up for local filtering....
Unwanted header problems come from 2 places.
The /etc/qconfig queue device stanza says header = group or header = always.
The print command calls for it. lpr by default issues a command that gets sent to 'enq' as '-c -Bgn file'.
This means that you will always get headers with lpr no matter what is set in /etc/qconfig unless you use lpr -h filename -> '-c -Bnn file'. enq, lp and qprt all default to NO flags. You can always force no headers with 'enq -Bnn' or 'qprt -Bnn'. You can also DESTROY the virtual printer header capability by setting the 'sh' attribute to nothing: 'sh=[enter]'.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.