?
Solved

Print outs sent to different trays of a printer using UNIX

Posted on 2001-06-04
3
Medium Priority
?
276 Views
Last Modified: 2013-12-06
Can I redirect my printouts to different trays of a printer in UNIX and is it possible in VMS. Please do let me know at the earliest.
0
Comment
Question by:okhari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 12

Accepted Solution

by:
DRRYAN3 earned 200 total points
ID: 6152910
Are we talking about an HP Laserjet or some other brand of printer?

You need to determine the appropriate escape sequence for the printer and either embed it in your output stream, modify the lp spooler files so you can select the tray with a command line option (usually -o tray2, or -o tray3 in Solaris or HP-UX), or modify your application's printer driver to support this feature.

For HP PCL5 printers, try the following where ESC = ASCII 27, to select the input paper tray.  You can also select on certain models, where the paper is to go.

ESC&l#H (replace # with tray number)


0
 
LVL 21

Expert Comment

by:tfewster
ID: 7705115
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- Answered by DRRYAN3

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster (I don't work here, I'm just an Expert :-)
0
 

Expert Comment

by:modulo
ID: 7757473
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month7 days, 23 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question