samba printing

McCy Ron ron at bouncebk.com
Mon Jan 24 07:54:47 PST 2005


The pass-through script, and the idea to use it, came from "FreeBSD 
Unleashed". I didn't know you could get away with not having a filter in 
printcap.
I'll try your idea to see if it works. I'm using the same "idea" for 
other remote Ethernet printers this computer serves.
Warren Block wrote:

> On Sun, 23 Jan 2005, McCy Ron wrote:
>
>> I've got a printcap setting that uses a "pass-through" filter.....
>> Windows provides the drivers that talk to the printer correctly. BSD 
>> need only pass the bytes through.
>>
>> ###################################
>> ### printcap setup for Samba printer share......
>>
>> broxima|hplj4|Samba Laser:\
>>   :sh:\
>>   :lp=/dev/lpt0:sd=/var/spool/output/broxima:\
>>   :lf=/var/log/smbprt-errs:\
>>   :if=/usr/libexec/pass-prt:\
>>
>> ### pass-prt ......Pass through filter........
>> #!/bin/sh
>> /bin/cat && exit 0
>> exit
>
>
> That looks like it is the same as having no input filter at all, i.e.:
>
>  broxima|hplj4|Samba Laser:\
>    :sh:\
>    :lp=/dev/lpt0:sd=/var/spool/output/broxima:\
>    :lf=/var/log/smbprt-errs:
>
> -Warren Block * Rapid City, South Dakota USA
>


More information about the freebsd-questions mailing list