The problem was the lack of the line #!/bin/sh -x
at the beginning of the filter. Impossible to guess with the info I gave... Vicente Torres wrote: > > I have following problem: > > lpd does not execute the filter script associated with a local printer. > > The /etc/printcap entry is: > > hl720ps:\ > :lp=/dev/lp0:\ > :sd=/var/spool/lpd/hl720:\ > :mx#0:\ > :if=/usr/local/bin/filtro:\ > :af=/var/log/lp-acct:\ > :lf=/var/log/lp-errs:\ > :sh: > > The the permissions for /usr/local/bin/filtro are: > > -rwxr-xr-x 1 root root 96 Jun 7 17:37 > /usr/local/bin/filtro > > Everybody has right to write, read and execute in /var/spool/lpd/hl720. > > Any idea will be appreciated. > -- ######################################## .'/,-Y" "~-. Vicente Torres Carot l.Y ^. Universidad Politécnica de Valencia /\ __ "Doh!" Departamento de Ingeniería Electrónica i ___/" "\ Ctra. Nazaret-Oliva, s/n | /" "\ o ! 46730 Grau de Gandia (Valencia) l ] o !__./ SPAIN \ _ _ \.___./ "~\ X \/ \ ___./ Tel.: (96)2849300 ( \ ___. _..--~~" ~`-. FAX: (96)2849309 ` Z,-- / \ __. ( / ______) "I don't apologize. I'm sorry, but that's \ l /-----~~" / just the way I am." -- Homer Simpson -- Y \ / ############################################## | "x______.^ -- Hi! I'm a .signature virus! Copy me into your ~/.signature, please! --