Solved

Print outs sent to different trays of a printer using UNIX

Posted on 2001-06-04
3
270 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
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 20

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.:

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now