Solved

Print outs sent to different trays of a printer using UNIX

Posted on 2001-06-04
3
275 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 50 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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