Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lp lpr command

Status
Not open for further replies.

240860

Technical User
Oct 8, 2001
2
FI
what option of lp lpr command for print a banner before
me file
Thank you
@+
 
240860

The lp command will not print a banner page when used.

The lpr will. If you need to use the lpr command, but do not want to print a header - use the -h flag.

regards,
 
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....

doc that may be helpful:
----------------------------------------------

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]'.

Hope it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top