Can't get printer comment right
Peter Blake
ppb at baloo.tcp.co.uk
Wed Nov 26 06:36:03 GMT 1997
On Tue, 25 Nov 1997, Ben Stuyts wrote:
> Hello,
>
> I am setting up a FreeBSD 2.2.5 machine with Samba 1.9.17p2 as a print
> server. For this it is important to get the printer comments right, but I
> can't get it to work properly. This is my printcap file:
>
> # @(#)printcap 5.3 (Berkeley) 6/30/90
> # $Id: printcap,v 1.5 1996/10/13 16:52:33 joerg Exp $
>
> lp0|Graphtec GP2002:\
> :lp=/dev/lpt0:sd=/var/spool/output/lp0:lf=/var/log/lpd-errs:\
> :mx#0:sh:sf:
> #
> lp1:HP Laserjet III:\
^
Correct the syntax in your printcap file!
> :lp=/dev/lpt1:sd=/var/spool/output/lp1:lf=/var/log/lpd-errs:\
> :mx#0:sh:sf:
> #
> lp2:OKI ML380:\
^
and here.
> :lp=/dev/lpt2:sd=/var/spool/output/lp2:lf=/var/log/lpd-errs:\
> :mx#0:sh:sf:
>
> This is what I get when running smbclient -L on that machine:
>
> ..
> Server=[ANDREW] User=[benst] Workgroup=[WORKGROUP] Domain=[WORKGROUP]
>
> Sharename Type Comment
> --------- ---- -------
> IPC$ IPC IPC Service (Samba 1.9.17p2)
> lp0 Printer Graphtec GP2002
> lp1 Printer
> lp2 Printer
> printers Printer
> ..
>
> As you can see, it only gets the comment right for lp0. How can I get the
> comments for lp1 and lp2 right? I've tried various combinations in the
> printcap file, but didn't succeed. According to the documentation, a print
> alias that has a space in it is taken as a comment, but it doesn't seem to
> work for lp[12].
>
> Any idea what I'm doing wrong?
>
> Thanks,
> Ben
>
> ------------------------------
>
---
Peter Blake
ppb at hft.co.uk
ppb at baloo.tcp.co.uk
More information about the samba
mailing list