lpr-2005 input filters
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > lpr-2005 input filters




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    lpr-2005 input filters  
gobo20@lycos.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-13-06 06:12 AM

pulled lpr-2005.05.01 from debian website and compiled it.  it does
print, but i can't make it correctly handle input filters.  the groups
have many disscussions on not being able to use input filters on
remote printers, so i tried to work with that as well and still no
luck.

below are my printcap entries.  all my printers are network attached
in one way or another.

# hp 5 on lantronix mps-1
laser:\
:lp=:rm=192.168.1.101:rp=laser_text:\
:sd=/var/spool/lpd/laser:sh:

smallsys:\
:lp=/dev/null:\
:sd=/var/spool/lpd/smallsys:\
:if=/etc/smport:\
:sh:

ssa:\
:lp=rm=192.168.1.101:\
:rp=laser_text:\
:sd=/var/spool/lpd/ssa:\
:if=/etc/ssaport:\
:sh:

the smport filter:
#!/bin/sh
printf "\033(s12H" && cat | /usr/bin/lpr -Plaser && exit 0
exit 2

the ssaport filter:
#!/bin/sh
printf "\033(s12H" && cat && exit 0
exit 2

i'm not certain that the no-if-on-rm rule applies to both lpr and
lprng, and i can not find any reference to it in the source code.
pr test.txt | lpr -Psmallsys  (or ssa) and looking at the stream
with tcpdump, i never see the escape codes.

here is where i'm real confused.  the ssaport filter is not new,
it's still running on some boxes with lpr-048.  also, the smport
filter is partially working because the output is redirected to
the laser queue, sans printf string.

does anyone have any thoughts on what i'm missing?

thanks.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register