- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Print using lp cmd to set left margin in hpux
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
тАО08-02-2008 02:58 AM
тАО08-02-2008 02:58 AM
Print using lp cmd to set left margin in hpux
I use cmd below:
# lp -d printer4 -olm30 /tmp/test.page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2008 06:50 PM
тАО08-02-2008 06:50 PM
Re: Print using lp cmd to set left margin in hpux
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2008 04:50 AM
тАО08-03-2008 04:50 AM
Re: Print using lp cmd to set left margin in hpux
If, as Bill noted, your setup involves remote printers where the '-o' options of 'lp' won't help, you might find 'pr' useful:
# pr -o 16 myfile | lp -d myprinter
The '-o 16' will indent 16 spaces from the left. See the 'pr' manpages for more options.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2008 07:06 PM
тАО08-03-2008 07:06 PM
Re: Print using lp cmd to set left margin in hpux
Thx for the info.
There is an application running in my box and i want to print it using application menu. Yes its work using cmd line (pr -o 20 /tmp/test.page | lp -d printer5) but can i set this as permanent. Is there any conf file to set this up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2008 10:44 PM
тАО08-03-2008 10:44 PM
Re: Print using lp cmd to set left margin in hpux
It would have to be a conf file for your application to change the lp command to that pr/lp pipeline.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2008 11:00 PM
тАО08-03-2008 11:00 PM
Re: Print using lp cmd to set left margin in hpux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2008 11:12 PM
тАО08-03-2008 11:12 PM
Re: Print using lp cmd to set left margin in hpux
If you're a code monkey, you can simply change the model script for the printer in question. :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-04-2008 06:32 PM
тАО08-04-2008 06:32 PM
Re: Print using lp cmd to set left margin in hpux
No, the problem is the very big differences between HP printers on the network and printers that are being shared (remote printers). The model.orig directory is only used for HP printers with HP LAN cards when setup using hppi or SAM as network printers. Since the -olm30 option doesn't do anything, it would appear that the printer is a shared or remote printer. There is no config file to change the printer script. You might play with the remote printer script in /etc/lp/interface.
Bill Hassell, sysadmin