- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Printing in Unix: Setting Margin...etc
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
01-16-2003 10:51 AM
01-16-2003 10:51 AM
Printing in Unix: Setting Margin...etc
- 10 character per inch monofont
- top and bottom margins = 1/2 inch
- 6 lines per inch
- 66 lines per page
can someone tell me how to set that up? this is what I have in the following printer script:
dd_i2p=">lp -dis2 -s -onb -ovsi5 -otl66 -olpi6 -ofp10 -oportrait"
export dd_i2p
I would appreciate any help in this....thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 11:03 AM
01-16-2003 11:03 AM
Re: Printing in Unix: Setting Margin...etc
Use 'pr'. For instance:
# pr -F -o16 -l66 filename|lp -d myprinter
...would place the title of
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 02:35 PM
01-16-2003 02:35 PM
Re: Printing in Unix: Setting Margin...etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 03:42 PM
01-16-2003 03:42 PM
Re: Printing in Unix: Setting Margin...etc
To set the margins, use -olm, -orm and -otm for left-, right- and top-margins. Note that the units of measure are in columns and lines for the current font. Oops! The printer processes each option in order so you should always select the font and pitch first, then the vertical spacing increment (-ovsi) and finally the margins.
To see all the options, look at the man page for net_lj5x (I am assuming the 5Si is connected on the network using an HP JetDirect card and the model script is net_lj5x. If the printer is a remote printer connected to an PC, none of the -o options will function.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2003 04:22 PM
01-16-2003 04:22 PM
Re: Printing in Unix: Setting Margin...etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2003 09:52 AM
01-17-2003 09:52 AM
Re: Printing in Unix: Setting Margin...etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 10:47 AM
01-21-2003 10:47 AM
Re: Printing in Unix: Setting Margin...etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 04:33 PM
01-21-2003 04:33 PM
Re: Printing in Unix: Setting Margin...etc
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 04:38 PM
01-21-2003 04:38 PM
Re: Printing in Unix: Setting Margin...etc
^M^L^M
^M
^M
John Doe
2847 5th Street
^M
^M
and so on and on and on. Would the M or the L cause a reset?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2003 06:50 PM
01-21-2003 06:50 PM
Re: Printing in Unix: Setting Margin...etc
cat -v will show imbedded escape sequences. What happens on page 2 and beyond when you print /etc/profile or /etc/ntp.conf? How is the printer connected? (serial, parallel, HP's JetDirect card, some remote print server?)
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2003 09:18 AM
01-22-2003 09:18 AM