- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to print in landscape format using 'lp' comman...
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
тАО02-21-2001 05:58 PM
тАО02-21-2001 05:58 PM
How to print in landscape format using 'lp' command
How can I print my document via 'lp' command to a laser printer and the output is in landscape format?
If this is not possible, do I have to embed control characters at the top of the document to force the printer to print the subsequent in landscape format? How is the control character like?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 06:42 PM
тАО02-21-2001 06:42 PM
Re: How to print in landscape format using 'lp' command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 11:15 PM
тАО02-21-2001 11:15 PM
Re: How to print in landscape format using 'lp' command
file in landscape mode
$ lp -olandscape /etc/issue
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 11:37 PM
тАО02-21-2001 11:37 PM
Re: How to print in landscape format using 'lp' command
Insert the following alias in your .profile :
alias lpl="lp -d printer-name -olandscape"
this way when you need to printer in landscape format you can use:
lpl file
federico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2001 01:41 AM
тАО02-22-2001 01:41 AM
Re: How to print in landscape format using 'lp' command
In this case all -o options are ignored and you have to use control characters at the top of the document.
Consult your printermanual for a reference of these characters. They depend on make and model of your printer.
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 03:37 AM
тАО02-23-2001 03:37 AM
Re: How to print in landscape format using 'lp' command
The script also prints a header with date, username, hostname, filename and pagenr.
Read the script, and you can easily make a similar script for the port-orientation.
Syntax: landpr
To print the result of a command the syntax is:
Have a nice day!
Ragnar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2001 08:13 AM
тАО02-23-2001 08:13 AM
Re: How to print in landscape format using 'lp' command
DO THIS:
ioscan -fnk| lp -onb -o12 -olandscape
-onb (no banner) --- you're root
-o12 (font size 12 - depends on printer)
-olandscape (note NO spaces)