- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- linux compressed print command
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
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
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-26-2010 07:29 AM
тАО08-26-2010 07:29 AM
linux compressed print command
In hp-ux, the job runs "lp -d
I haven't been able to duplicate the -oc functionality in Red Hat 5.5.
Any ideas what a comparable -oc option is via the lp command in linux?
Thanks!
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2010 12:25 AM
тАО08-27-2010 12:25 AM
Re: linux compressed print command
At least in "laserjet4" model script, the script command that sends the compressed printing PCL command to the printer is:
echo "\033(s16.66H\c"
Looking at the PCL reference manuals, this selects a 16.66 characters per inch pitch instead of the default 10 cpi.
In RHEL 5.5, you might try this instead:
lp -d
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2010 04:56 AM
тАО08-27-2010 04:56 AM
Re: linux compressed print command
I ended up getting a file from a consultant that send some escape codes to the printer, that seems to work.
echo " E &l1O > /var/tmp/print.$$
cat $1 >> /var/tmp/print.$$
echo " E" >> /var/tmp/print.$$
lp -d$2 -c -s /var/tmp/print.$$
rm /var/tmp/print.$$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2010 12:36 PM
тАО08-30-2010 12:36 PM
Re: linux compressed print command
Please identify the make and model of the printer you're trying to use for compressed printing. And, by the way, have you selected an appropriate PPD file for your printer in CUPS? Without a PPD file, CUPS works in "raw" mode - and that will prevent many of the options from working.
On some printers, you might have to specify all the required options explicitly:
lp -d
(Note: all the examples in the CUPS documentation I've seen suggest that you must repeat the "-o" when specifying multiple options; specifying multiple options+values as a comma-separated list is not documented to work.)
But let's see what your consultant's file does:
The first "echo" command sends two PCL commands before the actual data to be printed. The first is
The second PCL command is
The second "echo" command just sends the "reset printer" PCL command again. But that is sent after the printable data, so its only purpose is to make sure the printer is left to a sane state for the next print job.
I guess this is probably different from what the "-oc" option did on HP-UX, but if it's an acceptable solution for you, great!
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-31-2010 04:56 AM
тАО08-31-2010 04:56 AM
Re: linux compressed print command
Thank you for your input, it's much appreciated! The printer model is basically every printer we have set up (hundreds), which are all LaserJets, most using a postscript driver in Red Hat. And yes, the file is a plain text "raw" file. Sorry I didn't add that info.
I'll give printing another shot using all those options.
Thanks again!