AW: [Samba] Print via print command while using 3.0

Thomas Nolte t.nolte at nolteinfosysteme.de
Thu Jan 29 12:58:24 GMT 2004


> [...]
> 
> > 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)

It doesn't work. The job goes to CUPS. Error from CUPS:

Jan 29 13:53:36 lisa smbd[29771]: [2004/01/29 13:53:36, 0]
printing/print_cups.c:cups_job_submit(766)
Jan 29 13:53:36 lisa smbd[29771]:   Unable to print file to pdfprinter -
client-error-not-found

Thanks

Regards
  Thomas Nolte



More information about the samba mailing list