lpr to ethernet printer / apsfilter

1997-12-30 Thread Lukas Eppler
Hi!

When using apsfilter for printing to an ethernet printer the
input filter 'if=..apsfilter...' is _not_ run. This has to do with the
fact that normally the printer spooler does the filtering. But if I
mention the printer itself in the printcap file, like

:lp=:\
:rm=195.48.69.8:\

, the printer is introduced as if it was a computer, a printer server. So,
the filter isn't run.

Now:Someone said here, that one could use two entries in the printcap,
so, that one printer filters, and prints it to the other one.

I tried this:

lp|lp2|PS_600dpi-a4-auto-mono|PS_600dpi auto mono:\
:lp=:\
:rm=localhost:\
:rp=raw:\
:sd=/var/spool/lpd/PS_600dpi-a4-auto-mono:\
:lf=/var/spool/lpd/PS_600dpi-a4-auto-mono/log:\
:af=/var/spool/lpd/PS_600dpi-a4-auto-mono/acct:\
:if=/usr/lib/apsfilter/filter/aps-PS_600dpi-a4-auto-mono:\
:mx#0:\
:sh:

raw|lp3|PS_600dpi-a4-raw|PS_600dpi auto raw:\
:lp=:\
:rm=195.48.69.8:\
:sd=/var/spool/lpd/PS_600dpi-raw:\
:lf=/var/spool/lpd/PS_600dpi-raw/log:\
:af=/var/spool/lpd/PS_600dpi-raw/acct:\
:if=/usr/lib/apsfilter/filter/aps-PS_600dpi-a4-raw:\
:mx#0:\
:sh:

but this produces an error:

$ lpr embassy
lpr: connect: No such file or directory
jobs queued, but cannot start daemon.
$ ps -ax | grep lpd
 4117  ?  S  0:00 /usr/sbin/lpd
 4373   1 S  0:00 grep lpd
$ lpq
waiting for queue to be enabled on localhost
Rank   Owner  Job  Files Total Size
1stgodot  7embassy   649 bytes

Or, the same question simple and easy: how can I print textfiles on a
postscript-only printer with lpr (avoiding a2ps and such) ?

Any help is appreciated.

Thanks,
--
Lukas Eppler (godot)
  http://www.fear.ch
  telnet://soil.fear.ch:
  talk:[EMAIL PROTECTED] 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: lpr to ethernet printer / apsfilter

1997-12-30 Thread Lee Bradshaw
Hi,

I don't know what apsfilter does, but you probably need to write a
script to call the apsfilter files.  I'm using magicfilter to print
postscript files to a non-postscript printer on the network.  Printing
to lp calls my input filter remote-filter which pipes the output
from magicfilter to lp-r.


/usr/local/bin/remote-filter:
=

#!/bin/sh
/usr/sbin/ljet4l-filter | lpr -Plp-r


/etc/printcap:
==

lp|lj|hplj4l|HP Laserjet 4L:\
:lp=/dev/null:\
:sd=/var/spool/lpd/hplj4l:\
:sh:\
:pw#80:\
:pl#66:\
:px#1440:\
:mx#0:\
:if=/usr/local/bin/remote-filter:\
:af=/var/log/lp-acct:\
:lf=/var/log/lp-errs:
lp-r|HP Laserjet 4L-r:\
:lp=/dev/null:\
:sd=/var/spool/lpd/hplj4l-r:\
:sh:\
:pw#80:\
:pl#66:\
:px#1440:\
:mx#0:\
:af=/var/log/lp-acct-r:\
:lf=/var/log/lp-errs-r:\
:rm=jetd:\
:rp=raw:


-- 
Lee Bradshaw [EMAIL PROTECTED]


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .