Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Printing question

1 view
Skip to first unread message

Shanti Suresh

unread,
Oct 3, 2000, 3:00:00 AM10/3/00
to
Folks,

We have an HP LaserJet 8100 series printer.
A text file printed on this printer using "lpr" does not get formatted correctly.
Only a couple of lines or so are printed. Each subsequent line begins right
below the end of the previous line. So, when say, the second or third line,
run out of the right edge of the paper, nothing gets printed after that.

It has an HP JetDirect card for network connectivity. And the "Installed Personalities" include
PCL, PCLXL and PS.

Using "enscript" to print a text file works okay. It comes out as postscript.
I was wondering how I might print native ASCII on this printer with correct formatting.

Thanks.

                                                        -Shanti

-- 
-----------------------------------------------------------------------------
              Shanti Suresh   E-mail: sha...@umich.edu

IT Communications Services               UNIX Sys. Administration/Programming
Information Technology Central Services  Network Management
University Of Michigan                   Network Engineering
-----------------------------------------------------------------------------
 

Rick Getchell

unread,
Oct 3, 2000, 3:00:00 AM10/3/00
to
hp offers suggestions here:

"HP JetDirect Print Servers - Fixing
Stair-stepping in UNIX (R) Print Jobs"
http://www.hp.com/cposupport/networking/support_doc/bpj02744.html

-Rick

John M. Lockard

unread,
Oct 3, 2000, 3:00:00 AM10/3/00
to
Shanti,

Look at the man page for printcap (if you're using a BSD style
print setup), or hunt through the lp variety of man pages
if you're using SysV printing. There's an entry that you can
set on either system that basically says "Give me a carriage
return after each line along with the standard line-feed"

-John

--jlockard - "When you look at Prince Charles, don't you think that
someone in the Royal family knew someone in the Royal
family?" - Robin Williams


Mark Montague

unread,
Oct 3, 2000, 3:00:00 AM10/3/00
to
On Tue, 3 Oct 2000, Shanti Suresh wrote:

> We have an HP LaserJet 8100 series printer.
> A text file printed on this printer using "lpr" does not get formatted
> correctly.
> Only a couple of lines or so are printed. Each subsequent line begins
> right
> below the end of the previous line. So, when say, the second or third
> line,
> run out of the right edge of the paper, nothing gets printed after that.
>
> It has an HP JetDirect card for network connectivity. And the "Installed
> Personalities" include
> PCL, PCLXL and PS.
>
> Using "enscript" to print a text file works okay. It comes out as
> postscript.
> I was wondering how I might print native ASCII on this printer with
> correct formatting.

What you need is CR/LF translation, as the other posters have said.

You say you're using lpr. Hopefully you have the lpf filter available.
(If you're using LPRng printing, you will).

Set the if= printcap entry to point to this filter. For example,
here's a fairly dumb printcap entry that sends justs directly to the
BSD "spooler" running on a JetDirect card on the printer, doing
CR/LF translation in the process:

p-lit-2flr|lsait:cm=HP5SiMX on 2nd floor 1007 E. Huron:\
:lp=r...@p-lit-2flr.admin.lsa.umich.edu:\
:lpr_bounce:if=/usr/ucb/lpf

Note that you'll almost certainly want to use something more
sophisticated. You'll also need to insert the correct path name
for your lpf binary.

Mark Montague
LS&A Information Technology
mark...@umich.edu


Shanti Suresh

unread,
Oct 3, 2000, 3:00:00 AM10/3/00
to
Thanks much to John, Robert, Rick, Mark and others who have
responded. Making the remote printer name,"text", solved the problem
for now.
 

                                                                -Shanti

Rick Getchell wrote:

hp offers suggestions here:

"HP JetDirect Print Servers - Fixing
Stair-stepping in UNIX (R) Print Jobs"
http://www.hp.com/cposupport/networking/support_doc/bpj02744.html

-Rick

-----Original Message-----
From: sha...@umich.edu [mailto:sha...@umich.edu]
Sent: Tuesday, October 03, 2000 11:48 AM
To: unix-...@umich.edu
Subject: Printing question

Folks,

We have an HP LaserJet 8100 series printer.
A text file printed on this printer using "lpr" does not get formatted
correctly.
Only a couple of lines or so are printed. Each subsequent line begins right
below the end of the previous line. So, when say, the second or third line,
run out of the right edge of the paper, nothing gets printed after that.
It has an HP JetDirect card for network connectivity. And the "Installed
Personalities" include
PCL, PCLXL and PS.
Using "enscript" to print a text file works okay. It comes out as
postscript.
I was wondering how I might print native ASCII on this printer with correct
formatting.

Thanks.
                                                        -Shanti
--
----------------------------------------------------------------------------
-

              Shanti Suresh   E-mail: sha...@umich.edu

IT Communications Services               UNIX Sys.
Administration/Programming
Information Technology Central Services  Network Management
University Of Michigan                   Network Engineering
----------------------------------------------------------------------------
-

0 new messages