- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Another printing problem
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
12-07-2001 07:03 AM
12-07-2001 07:03 AM
Another printing problem
I have to print a text file, but I need to print it landscape. So I used the command:
lp -d
It have printed landscape, but the caracter size is to big, cause not everything that I have on the page fit on it... So I want to use escape code, I think in Unix is "~E" but where should I wirte those???
Help please...
Thanks...
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:07 AM
12-07-2001 07:07 AM
Re: Another printing problem
The best answer is to modify the interface file. Cd to /var/spool/lp/interface. Look for the file 'printername'; it's just a script. I suspect there is already an option for font size or compressed; if not simply add on along with the others. You would then invoke it like
lp -dmyprinter -o landscape -o compressed myfile.
The interface file may be continued in a directory just below called 'model.orig' so check there as well. This is really quite easy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:13 AM
12-07-2001 07:13 AM
Re: Another printing problem
eg:
lp -d
The higher the value of -pitch the smaller the font. I dunno if this will work for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:24 AM
12-07-2001 07:24 AM
Re: Another printing problem
Sachin Patel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:27 AM
12-07-2001 07:27 AM
Re: Another printing problem
lp -d
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:28 AM
12-07-2001 07:28 AM
Re: Another printing problem
Add -oc to your printer command.
Even, this works fine:
lp -d
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 07:53 AM
12-07-2001 07:53 AM
Re: Another printing problem
lpr) # setup for 132 col by 66 row landscape
orientation="l"
pitch="c"
hsi="9"
vsi="5"
textlen="66";;
std) # setup for 96 col by 66 row portrait
orientation="p"
pitch="12"
vsi="7"
textlen="66";;
after the landscape) case option, then you can enter
lp -olpr printfile
to print legacy standard 66 lines on a landscape page (-ostd for portrait). This will also fit the legacy standard of 132 columns.
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2001 09:17 AM
12-07-2001 09:17 AM
Re: Another printing problem
lp -d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 06:43 AM
12-13-2001 06:43 AM
Re: Another printing problem
If you use an HP(-compatible) printer and associated model script, then you can probably use "lp -ooptions file" to *print* a summary of the available options for that model script ("options" is the *literal* word "options", "file" is the name of any (dummy) file).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2001 06:56 AM
12-13-2001 06:56 AM
Re: Another printing problem
Thanks,
ciao!