Re: printcap rerouted filter
On Tue, Sep 29, 1998 at 04:41:06PM +0000, Kent West wrote:
> Maybe I just don't understand how printcap/lpc/filters work (very
> likely).
>
> I've got a printcap entry like this:
>
> beeper:\
> :if=/etc/magicfilter/beeper-filter:\
> :lp=/dev/null:\
> :sd=/var/spool/lpd/beeper:\
>
> I've got a filter named beeper-filter that looks like this:
> #!/usr/bin/perl
> print "\ntest\n\n";
Try to use a shell script just to see if the filter is executing.
Try this:
#!/bin/sh
echo "Test" > /tmp/testfile
You may need to set the executable bit on the filter with chmod.
>
> When I do a test print, such as
> ls -l | lpr -Pbeeper
>
> nothing happens that I can tell. The word "test" never shows up
> anywhere.
>
> Can anyone tell me what I'm doing wrong?
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
--
Jim Foltz <aa204@acorn.net>
Reply to: