HELP: Sending control codes to a remote HP-Laserjetxxx printer

From: Guy Dallaire <dallaire_at_total.net>
Date: Fri, 27 Sep 1996 10:30:36 -0400

Hello,

I have various HP LaserJets (4M, IIIP, etc...) to which I can print. These
printers are part of a Novell Network, but I can print there because I'm
using NetWare NFS 2.1

The problem is that I would like to change the way some files print. I'm not
very experienced with printing under UNIX. I have used lprsetup and added
the devices as 'remote' and it works, provided you print 'standard' text
(i.e.: 80 columns, courrier)

What I need now is to change:

        1) Paper sizes
        2) Orientation
        3) Fonts

I tried to insert a file containing PCL Escape sequences in front of the
file that I want to print, but that does not seem to work. For example:

File 'legland.dat' contains:

^[E^[&l3a1O

That means (in PCL): Reset the printer, Paper size=legal, Orientation=landscape

I then use the following command to print files:

cat legland.dat some_file.txt | lpr -PDMR1 (Where DMR1 is my remote printer)

All I get is a Novell Banner, no other output.

I also tried lpr -x -PDMR1, but then, my carriage returns are 'stripped',
all the text is printed on one line.

                                Any help, suggestions, would be appreciated

                                Thank you VERY much
Received on Fri Sep 27 1996 - 17:05:51 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT