- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: hpux printer configuration
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
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
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
тАО06-16-2008 06:19 AM
тАО06-16-2008 06:19 AM
hpux printer configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2008 07:24 AM
тАО06-16-2008 07:24 AM
Re: hpux printer configuration
If you want to try, start by reading "man lpadmin".
See /usr/lib/lp/model/rmodel to see how the remote printer is normally handled. Your new model script should essentially perform any formatting like a regular model script for your printer model, but capture the output of the formatting command(s) into a temporary file instead of allowing it to flow into the standard output.
The last step in the script would be to pass the output file to the /usr/sbin/rlp command with appropriate parameters.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2008 07:38 AM
тАО06-16-2008 07:38 AM
Re: hpux printer configuration
Can I start with the model script that would be used by a network or local printer and try to modify it to use rlp?
If anyone has any examples for writing a custom model script (HP printer), I would be most interested to see how you did it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-16-2008 05:08 PM
тАО06-16-2008 05:08 PM
Re: hpux printer configuration
PCL (which is plain ASCII plus (HP) codes for features)
and
Postscript
HP-UX provides a trivial postscript model which can take a plain ASCII file and convert it to Postscript, but the result is just ASCII text on the paper.
You can look at model scripts in the /usr/lib/lp/model directory but virtually all of them are for HP printers, and many have extensive option lists. These scripts can be intimidating since they are fairly lengthy. Start with the dumb script to see the basics. The rest involves getting a printer reference manual to do what you want. The codes to rotate portrait to landscape are trivial but if you want to change fonts and page layout, plan to spend a lot of time in the Tech Ref manuals.
I have attached an lp model script paper I wrote several years ago. It still applies for 11.x today.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-02-2008 12:33 PM
тАО07-02-2008 12:33 PM
Re: hpux printer configuration
Thank you guys so much for such quick and accurate advice.