From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076339121713.tru64-unix-managers.marc@archive.invalid> From: Guy Dallaire Date: Fri, 27 Sep 1996 14:30:36 +0000 To: tru64-unix-managers Subject: HELP: Sending control codes to a remote HP-Laserjetxxx printer X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076339121713 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