tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* HELP: Sending control codes to a remote HP-Laserjetxxx printer
@ 1996-09-27 14:30 Guy Dallaire
  0 siblings, 0 replies; only message in thread
From: Guy Dallaire @ 1996-09-27 14:30 UTC (permalink / raw)
  To: tru64-unix-managers

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-09-27 14:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-27 14:30 HELP: Sending control codes to a remote HP-Laserjetxxx printer Guy Dallaire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox