Solved

Printing to HP LaserJet from SunOS

Posted on 1997-02-22
1
387 Views
Last Modified: 2013-12-16
I've been able to print Postscript files to an HP LaserJet 5SiMX printer on my network using either the lp or lpr commands on my SunOS.  The plots I've made have all been on 8 1/2" x 11" (A-size) paper. This printer has an upper and lower tray as well as a manual bypass tray on the side.  The bypass tray is loaded with B-size paper. I'd like to plot B-size postscript files on this plotter usingthe B-size paper in the bypass tray. I believe that I need to embed the appropriate 'paper source select' command *in* the postscript command stream I send to the printer. I don't have the manual for the HP Laserjet so I need to know what command to embed to make the plot go to the bypass tray.  
0
Comment
Question by:belkin
1 Comment
 
LVL 1

Accepted Solution

by:
marc123096 earned 50 total points
ID: 1811796
you have to use PCL command (even if you want to print with PS). To select the paper source, you have to send: Ec&l#H
Ec is escape (27h) and # could be :
0 : paper source remains unchanged
1 : Feed paper from a printer-specific tray
2 : Feed paper from manual input
3 : Feed envelope from manual feed
4 : Feed paper from lower tray
5 :  Feed from optinnal paper source
6 : Feed envelope from optionnal env. feeder

You, perhaps, need reset the printer before:
Ec%-12345XEcE then set the paper source, send your PS file then EcEEc%-12345X
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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 …
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 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…

758 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