"Lewis, James M." wrote:

> > I'm stumped.
> >
> > I'm trying to print to a remote printer (don't have a local one), and
> > everything looks right according to the howtos &tc. Here's my printcap:
> >
> > # REMOTE HP4
> > lp|hp4:\
> >         :sd=/var/spool/lpd/hp4-raw:\
> >         :rm=1<the ip address of my printer>:\
> >         :rp=<the name of my printer as it shows on the printer's
> > configuration printout>:\
> >         :lp=/dev/null:\
> >         :sh:
> >
> If it is an hp network interface (i forget the name,
> jet direct or netdirect or something like that) then
> you have to use "raw" or "text" for the rp= parameter.
> I think the printers config printout shows you the
> system name for the interface card, not the print
> queue name.  Let me know if this works.
>
> jim
>

Thanks for the response. It is an HP JetDirect interface.

I modified /etc/printcap so the rp= line was set to text; then I did a "lpc 
reread",
then an "lp /etc/printcap" and still nothing shows up at the printer.

So emptied the /var/spool/lpd/hp4-raw directory, and then changed the rp= line 
to
"raw", and repeated the process. Again, no output at the printer, but 
something's
making it to the spool:
-rw-------   1 daemon   lp              6 Oct  8 13:18 lp
-rw-------   1 daemon   lp              6 Oct  8 13:18 unspooler.lp

PAUSE --

Before sending this message, I decided to purge everything I could think of 
that had
to do with printing (lprng, magicfilter, printcap, the spool directories).

Then I commented out the unstable line in my apt sources.list file and did an
"apt-get update"; then I used dselect to re-install lprng and bang! I'm finally
getting something out of the printer (it's not usable output yet, but it's
something!) Now I've got to figure out how to run a filter for a remote printer 
(why
doesn't lpd/magicfilter do that?!).

Thanks for the help!

Reply via email to