You need:
lpr -Pprinter -J"%J" (maybe single quotes, not sure)
Below is what I do.
On Tue, Sep 10, 2002 at 06:58:00PM +0200, Francesco Mosca wrote:
[lp]
comment = Raw Printer for Z53
path = /tmp
create mask = 0700
guest ok = yes
hosts allow = 192.168.
printable = Yes
printing = lprng
print command = echo %J %p %s >> /tmp/junkJ;\
a="`echo '%J' | sed "s/^.*-
//"`" ;\
echo This is truncated $a >> /tmp/junkJ;\
/usr/bin/lpr -Plp -J"$a" %s;\
rm %s
lpq command = /usr/bin/lpq -Plp
lprm command = /usr/bin/lprm -Plp %j
lppause command = /usr/sbin/lpc hold -Plp %j
lpresume command = /usr/sbin/lpc release -Plp %j
printer name = lp
share modes = No
Now, you are using some script printpdf I don't know anything about.
I would look at that script and see if the %J parameter gets read and used
properly.
Joel
> i'm setting up a samba pdf (virtual) printer. it all works, except that
> i can't get the windows' job name, to give a readable (and
consistent)
> name to the generated pdf file. according to the manpage i can use %J to
> get the job name, but it doesn't work. the clients are win98 boxes. i
> tried to print either a test page, a unsaved word doc and a saved word
> doc.
> this is the pdfprinter's section of my smb.conf
>
> [pdf]
> printer name = pdf
> path = /tmp
> printable = yes
> guest ok = yes
> print command = /usr/bin/printpdf %s %u %J >> /tmp/printpdf.log
> lpq command > lprm command >
>
>
> thanks
>
> Francesco
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba