The printer is not including a carriage return at the end on the line. Set
up a Linux script like the following:
#!/bin/bash
#
# Include a carriage return at the end of a line of text before printing.
#
Cat - | sed 's/$/^013/' | lp -d printername -o nobanner

The ^013 is the carriage return character. After creating the script make
sure it is executable by everyone that will use it. Then put its pathname in
the driver location of the device.

Jerry Banker
Senior Programmer Analyst
IBM Certified Solutions Expert

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dave Taylor
Sent: Monday, May 19, 2008 12:46 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] Problem Printing PCL ESC Sequences to a RHEL Printer from
Universe

I have installed UV PE 10.2.7 on RHEL 5.1 Desktop and want to send PCL ESC
sequences to a printer to configure the printer before I send print jobs to
that printer.

The HP LaserJet printer driver will not pass ESC sequences thru to the
printer
(as it won't on Windows).

1.    I created a "raw" printer pointing to the HP LaserJet printer on LPT#1
using the raw printer driver in RHEL.

2.    I added a raw printer driver to /usr/spool/uv and installed this raw
printer in Universe with a CR Mode = Convert CR to CR/LF and the FF Delay =
2,
and verified this setting in the sp.config file in /usr/spool/uv.

I can print to this "raw" printer.

However, the first line of the first print job after resetting the printer
starts at the left edge of the paper, but each subsequent line starts one
line
down and on the next character position after the last character in the line
above it, like there is a LF at the end of each line but no CR to reposition
the cursor to the beginning of the next line.

The first line of the following print job even starts one position to the
right of the last character in the last line of the previous print job, so
the
printer cursor position is not even being reset at the end of the print job.

3.    The FF Delay in the TERM statement = 2.

4.    I added the l.len and p.len and FMT option to the SETPTR command and
nothing changed.

4.    I attempted to use UniAdmin from a Windows client to define the
printer
but got the msg "No RPC Connection Active."

So, I tried to start UniRPC under the Universe Package menu on RHEL and it
would not start, with a msg "one or more of the required files either did
not
exist or was corrupt", but they all existed.

At this point, I don't know if there's something wrong with the raw printer
driver in RHEL or with the Universe printer definition process or the
ability
of Universe to interpret it.

I  haven't figured out how to print a print job to a RHEL file outside of
Universe so I can examine it to see if there are any CRs with  LFs at the
end
of each print line.

Any suggestions will be deeply appreciated.

tia,

Dave


Dave Taylor
Sysmark Information Systems, Inc.
Authorized IBM Business Partner
49 Aspen Way
Rolling Hills Estates, CA 90274
(O) 800-SYSMARK (800-797-6275)
(F) 310-377-3550
(C) 310-561-5200
www.sysmarkinfo.com
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to