[Samba] Print via print command while using 3.0

Stefan Klein stefan.klein at materna.de
Thu Jan 29 12:27:58 GMT 2004


On Thu, 29 Jan 2004 12:18:19 +0100
"Thomas Nolte" <t.nolte at nolteinfosysteme.de> wrote:

> Hi there,
> 
> I want to do the following:
> 
> ------------------------------------------------------------
> # smb.conf
> [global]
>         ...
>         printing = cups
>         ...
> [pdfprinter]
>         comment = PDF Drucker, druckt nach H:\print
>         print command = /usr/bin/tps2file.sh "%s" "%U" "pdf" "pdfwrite" ""
>         path = /tmp
>         printable = yes
>         valid users = @users
> ------------------------------------------------------------
> The script "/usr/bin/tps2file.sh" convert the ps data to pdf. It works
> fine under SAMBA 2.2.3 but not under 3.0.
> 
> How can I use my script under 3.0.

If your samba is linked with the CUPS libraries it doesn't obey the "print
command" definition.

So i think you have to use:
=================================
 [global]
         ...
         printing = cups
         ...
 [pdfprinter]
	 printing = bsd
         comment = PDF Drucker, druckt nach H:\print
         print command = /usr/bin/tps2file.sh "%s" "%U" "pdf" "pdfwrite" ""
         path = /tmp
         printable = yes
         valid users = @users
=================================

(Not sure if it works to redefine the "printing" inside a subsection)

regards,
-- 
Stefan Klein, Systems Engineer

MATERNA GmbH Information & Communications
Theodor-Heuss-Str. 59, 61118 Bad Vilbel, Germany
phone: +49 6101 806 0       |   fax: +49 6101 806 590
mobile: +49 160 12 108 338  |   Stefan.Klein at materna.de


More information about the samba mailing list