[Samba] Print via print command while using 3.0

daniel.jarboe at custserv.com daniel.jarboe at custserv.com
Thu Jan 29 21:00:14 GMT 2004

> > > # 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

Yup, it's a bummer that you can't presently have the advantages of
integrated cups calls while also being able to use the print command on
a per-share as-needed basis.

There are a few options though.  You should probably read this thread
first: http://marc.theaimsgroup.com/?l=samba&m=104893379814030&w=2

Your quickest best-bets are probably:

1 - use cups backend for writing pdf's

2 - change your printing type to something other than cups and specify
global lppause/lpq/lpresume/lprm/print/queuepause/queueresume commands
appropriate for cups, and override them to call your script on that
share.  You'll lose cups integration in this case though, which you'd
probably like to avoid if possible

3 - Have a socket listener wrap around your tps2file.sh script, create a
cups printer with this socket as the destination.  You might even be
able to use (x)inetd... dunno.

~ Daniel


This message is the property of Time Inc. or its affiliates. It may be
legally privileged and/or confidential and is intended only for the use
of the addressee(s). No addressee should forward, print, copy, or
otherwise reproduce this message in any manner that would allow it to be
viewed by any individual not originally listed as a recipient. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorized disclosure, dissemination, distribution,
copying or the taking of any action in reliance on the information
herein is strictly prohibited. If you have received this communication
in error, please immediately notify the sender and delete this message.
Thank you.

More information about the samba mailing list