On 19-Mar-2002 Bjorn Nilsen wrote:
> It seems to be a syntax error
> 
> This prints to /dev/lp0 ???????????
> 
># cat /etc/printcap
> lp|HPLJ2100:\
>:rm=192.168.69.39:\
>:rp=raw:\
>:sd=/var/spool/lpd/lp:
> 
> This prints to network printer (notice no colons on end of lines)
> 
># cat /etc/printcap
> lp|HPLJ2100\
>:rm=192.168.69.39\
>:rp=raw\
>:sd=/var/spool/lpd/lp:
> 
> Why this is the case I have no idea because the example printcap file has
> those colons and everything I read on the net does too. If anyone is
> interested I am running Debian 2.2r5 and lpd 0.48-1. Well this has wasted a
> heap of time :-(

man termcap (which is referred to in man printcap) states :

       Subsequent  fields  contain the terminal capabilities; any
       continued capability lines must be indented one  tab  from
       the left margin.                                                         

The first entry in my (working) printcap is :

lp|Remote raw printer:\
        :lp=/dev/null:\
        :rm=printserver:\
        :rp=lp:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :sh:

... which has 2 tabs at the beginning of each continuation line.

Could a lack of tab(s) be the cause of your problem?

Cheers,
Brian Chatterton

---------------------------------------------------------------------

Reply via email to