[Samba] print command %J (job name) problem

Joel Hammer Joel at HammersHome.com
Tue Sep 24 11:05:01 GMT 2002


Hmmmm....
The original poster was talking about the file name not showing up in the
queue, and now you are talking about a delay in execution of a printing
filter. It is hard to comment on that problem unless I see your smb.conf and
your /etc/printcap,  What kind of clients are keep waiting?
Why are you sending pdf jobs, anyway? Why not just use a generic postscript
driver on  a windows client (HP laserjet III plus works fine) and send the
job to any print server queue that understands postscript?
Joel


> Well the pdfprint script is a frontend to ps2pdf. I used it but it keeps
> the clients waiting at the print screen until the script finishes (it does
> not que the print jobs). I've been trying to get all things to work via
> lpd but I have a hard time doing so.
> 
> Greetz Maxor
> 
> On Tue, 10 Sep 2002, Joel Hammer wrote:
> 
> > 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
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> >
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list