[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lpr to ethernet printer / apsfilter



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
1st    godot      7    embassy                               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:3333
                                                  talk:godot@moon.fear.ch 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: