From: Guy Dallaire <dallaire () total ! net>
To: tru64-unix-managers
Subject: HELP: Sending control codes to a remote HP-Laserjetxxx printer
Date: Fri, 27 Sep 1996 14:30:36 +0000 [thread overview]
Message-ID: <96076339121713.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1996-09-27 14:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox