HP3000-L Archives

July 2002, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Tue, 2 Jul 2002 08:50:13 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
Steve,

> ... it offered to install LPR and LPD, which ...

> Does this program allow me to print to a printer
> attached to a Windows PC from the HP-3000???

The 3000 does not speak the LPR/LPD protocol by default, so
sharing the PC printer this way, won't allow access from the
3000 unless you also add a piece of "lpr client" software to
the 3000 side.

I believe that various 3rd party spooling tools include LPD
server and or LPR client functionality. If you don't have one,
you might also use freeware in this regard. For example, some
time ago, I used some Java based freeware to send flat files
to an LPR/LPD printer or print server.

Find my related posting with URL and example in the HP3000-L
archives on Raven (or comp.sys.hp.mpe archives at google.com)
by searching for "java" and "lpr".


> could someone please tell me what's
> different about this program and say... sharing your printer
> through the standard Windows means (through the printer
> control panel).

Well, LPR/LPD is just a different protocol than SMB, which is
used by sharing from the printer control panel. SMB originates
at Microsoft whereas LPR/LPD originates in the Unix world.

If you share the printer using SMB, you can use the smbclient
program from Samba/iX to send flat files to it from the 3000.

 :setvar hppath, hppath+",/usr/local/samba/bin"
 :smbclient "\\yourPC\yourLPT -P -c 'print myfile'"

 :# might need to add password -U user -W domain
 :# if the printer is not shared for "everyone"

Note however, that like the freeware LPR/LPD tool, smbclient
can only handle flat files (plain text, graphics, Postscript,
PCL, etc) but not MPE spoolfiles with CCTL without converting
that to PCL or Postscript.

You might combine my FakeLP.java program with smbclient to
have the former handle the task of "picking up" spoolfiles and
converting them to plain PCL (no more CCTL) before sending to
the SMB shared printer. However, when using Java, it might be
easier to also handle the SMB transmission on Java... There is
an Open Source package for that as well (called jCIFS)...

Let me know if you need an example for that ;-)

Hmmm. More than you probably wanted to know...

Lars.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2