- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to have lp print banners on top & bottom of ea...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2001 01:13 PM
08-07-2001 01:13 PM
How to have lp print banners on top & bottom of each page?
Is there a way to have the `lp` command print banners on the top and bottom on each page? The banners would be used to show the classification of the document.
Example:
####################################
# #
# U N C L A S S I F I E D #
# #
####################################
this would appear on both the top and bottom of each page.
thanks,
Boyd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2001 01:26 PM
08-07-2001 01:26 PM
Re: How to have lp print banners on top & bottom of each page?
One way is to put your banner into a file, for instance, called "/tmp/mybanner" and do:
# cat /tmp/mybanner /tmp/myfile /tmp/mybanner | lp -dmydest
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 12:28 PM
08-08-2001 12:28 PM
Re: How to have lp print banners on top & bottom of each page?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 07:09 PM
08-08-2001 07:09 PM
Re: How to have lp print banners on top & bottom of each page?
However,hen you know the file is plain ASCII with no special control characters like formfeed, you could write a wrapper that reads the file to print, outputs the top of page banner, add N lines of print text, output the end of page banner, then use formfeed to eject the page.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2001 08:09 PM
08-08-2001 08:09 PM
Re: How to have lp print banners on top & bottom of each page?
You can then configure your own header settings and other pretty formatting options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2001 10:17 PM
08-12-2001 10:17 PM
Re: How to have lp print banners on top & bottom of each page?
Unwrapping PS jobs within PJL should be doable as well, but I have no idea how PCL could be handled (well, declare all PCL output classified.