[Samba] polling for options on printing commands

Thomas Bork TomBork at web.de
Tue Oct 19 07:53:46 GMT 2004


Hi Jerry,

> For people with print servers:
> 
> I'm working on fixing a bug for 3.0.8 and need to know how many
> people use smb.conf variables other than the standard printing
> vars like %p, %j, etc... in the various printing commands.
> Please send me examples if you use things like %U, or %m.
> Thanks.

with LPRng:

        print command = /usr/bin/lpr  -U%U@%m -P%p -r %s

or

        print command = chmod 666 %s; name="`echo '%J' | sed "s/^.*- //"`"; if [ "$name" = "" ]; then name="%s"; fi; /usr/bin/lpr -U%U@%m -P%p -J"$name" %s; rm %s

and so on:

        lpq command = /usr/bin/lpq  -U%U@%m -P%p
        lprm command = /usr/bin/lprm -U%U@%m -P%p %j
        lppause command = /usr/sbin/lpc -U%U@%m hold %p %j
        lpresume command = /usr/sbin/lpc -U%U@%m release %p %j
        queuepause command = /usr/sbin/lpc -U%U@%m stop %p
        queueresume command = /usr/sbin/lpc -U%U@%m start %p

der tom
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201



More information about the samba mailing list