HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to use "lp -o"
Operating System - HP-UX
1833051
Members
2404
Online
110049
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-16-2007 03:54 AM
04-16-2007 03:54 AM
how to use "lp -o"
I have a problem about print.
I want to print my files with some style or format(such as fonts,lines,etc)
It sames that "lp -o" can help me to do it.
But how to use lp -o?I can find little from "man lp".
could you give me some information about "lp -o" or you can provide some document.
thanks a lot!
Chen lin
I want to print my files with some style or format(such as fonts,lines,etc)
It sames that "lp -o" can help me to do it.
But how to use lp -o?I can find little from "man lp".
could you give me some information about "lp -o" or you can provide some document.
thanks a lot!
Chen lin
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 03:59 AM
04-16-2007 03:59 AM
Re: how to use "lp -o"
You can do a "lp -ooptions" which will print out all the available options for you.
However, how your printer is defined/connected will have an impact on what you are able to do. If your printers are defined as "remote", being connected through another server, your options are severely limited. Local printers, attached directly to your server and network printers, defined with their own IP address offer the most flexibility.
Pete
Pete
However, how your printer is defined/connected will have an impact on what you are able to do. If your printers are defined as "remote", being connected through another server, your options are severely limited. Local printers, attached directly to your server and network printers, defined with their own IP address offer the most flexibility.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 04:00 AM
04-16-2007 04:00 AM
Re: how to use "lp -o"
This is one of those "it depends" questions. By convention, you can issue an "echo 'test' | lp -dmyprinter -ooptions" and the printer will then print a list of available options -- or simply direct you to a man page such as "man net_lj4x". The list of -o options is actually unique to a given model script (interface file) and since the interface files can be customized, i they can even be unique to a given printer on a given system. You can examine the interface files in /var/spool/lp/interface for definitive answers although you may need to also look in the model.orig directory just below /var/spool/lp/interface.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2007 12:53 PM
04-16-2007 12:53 PM
Re: how to use "lp -o"
lp can't tell you anything because all -o options are in the printer script, thus the -ooptions feature. For instance, you can do things like:
lp -olandscape /etc/profile
lp -o12 /etc/profile
HOWEVER: no -o options have any meaning if your printer is hosted on another system, especially Windows or other non-HP-UX boxes. You need to talk directly to the printer using an HP network card in the printer (aka, JetDirect card).
Bill Hassell, sysadmin
lp -olandscape /etc/profile
lp -o12 /etc/profile
HOWEVER: no -o options have any meaning if your printer is hosted on another system, especially Windows or other non-HP-UX boxes. You need to talk directly to the printer using an HP network card in the printer (aka, JetDirect card).
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP