- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: printer options
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
05-30-2003 01:03 AM
05-30-2003 01:03 AM
one page in the A4 while lp command to print the file.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 01:16 AM
05-30-2003 01:16 AM
Re: printer options
If it is a text file, you can try with pr -l50 | lp
You can use the printer options through the -o option in lp command
lp -o option
See the printer script file for more details. (/var/spool/lp/interface/printer_name)
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2003 08:52 AM
05-30-2003 08:52 AM
Re: printer options
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 05:09 PM
06-01-2003 05:09 PM
Re: printer options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 11:15 PM
06-01-2003 11:15 PM
Re: printer options
What is the number of rows are you printing with the pr command?
What is now the problem?
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 11:39 PM
06-01-2003 11:39 PM
Re: printer options
Look at
lp -on -otl50 -ol54
You may get problems with the
hardware pagefeed on the printer.
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2003 11:40 PM
06-01-2003 11:40 PM
Re: printer options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 12:27 AM
06-02-2003 12:27 AM
Re: printer options
See the /var/spool/lp/interface/twn105
and check what option is right for you, then use the -o option, for example:
lp -ol070 or lp -otl070 -dtwn105
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 01:45 AM
06-02-2003 01:45 AM
Re: printer options
It seems -ol070 and -otl070
don't affect the page length.
But I try to modify PCL5 directly, chage the length='ln70', this is work. But if add -ol or -otl parameters with lp command, the result will failed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 02:26 AM
06-02-2003 02:26 AM
Re: printer options
pr -l70 text_file > /dev/lp_device
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 06:19 PM
06-02-2003 06:19 PM
Re: printer options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2003 11:07 PM
06-02-2003 11:07 PM
Re: printer options
You can put the control codes with echo command:
For example to put an ESC character you can do:
echo "\033" > dest_file
cat your_file >> dest_file
where the number \nnn is in octal mode
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2003 12:00 AM
06-03-2003 12:00 AM
Re: printer options
You always need a page length text length difference
try
Look at
lp -on -otl70 -ol74
and if that isno good try adding -oc
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 01:35 AM
06-05-2003 01:35 AM
Re: printer options
PCL5. I'd appreciate that someone could give me more suggestions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 03:43 AM
06-05-2003 03:43 AM
Re: printer options
PCL5 ?
What type of printer is it . How is it attached to your box.
See
http://www.hp.com/pond/modelscripts/
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 04:03 AM
06-05-2003 04:03 AM
Solution/opt/hpnpl/bin/addqueue -h IP_address -q new_queue_name
Now it is important to test the row count with a plain ASCII fle (which is not a man page or some other preformatted file). The reason is that setting the printer options will not override imbedded formfeeds inside the print job. Use the /etc/profile or /etc/ntp.conf file as a source. They are fairly long and have no carriage controls inside the file.
You can easily create more lines on the page by adjusting the interline spacing with -ovsi as in:
lp -dprinter -ovsi8 /etc/profile
-ovsi can have fractional numbers like -ovsi5.67 for finer control over the line spacing. Note that this assumes that people are not 'playing' with the front panel defaults for the printer. Network printers should always be set to 100% defaults and each job then overrides these defaults. If a different font or line spacing is set in the printer, the script will know nothing about this.
Note that imbedding special escape sequences in the data stream works fine but you need to read (PCL5 tech ref) about the interaction between the font size, vertical spacing index, logical page length, etc. And these sequences are fine for the majority of HP LaserJet printers but may be incompatible with non-HP printers.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 05:33 PM
06-05-2003 05:33 PM
Re: printer options
I have try to modify the PCL5 script directly, it is done. But due to the system still have the other application will use the printer. So, the best way is include the parameters in lp command. Is it possilbe to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 05:51 PM
06-05-2003 05:51 PM
Re: printer options
If the PCL5 script is non-standard, you have anotgher choice if the printer is on the network with an HP JetDirect card. You can create another printqueue with the standard net_ljx000 script and then use the -o options as needed. NOTE: this assumes that the datafile you are rpinting does not have any PCL codes of formfeeds already in the file.
Bill Hassell, sysadmin