[Samba] Samba - cannot print multiple copies

Maithri Samuel mikesamuel at shaw.ca
Fri May 10 16:54:03 GMT 2002


Hi Joel,

Thank you for the info. Still not sure why I can't
do multiple prints. I'll just accept that
limitation and enjoy that my 1 copy printed
through samba/freebsd looks better than how
windows printed it :)

Cheers.

Mike Samuel

-----Original Message-----
From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]On
Behalf Of Joel Hammer

I do not have that option for notepad, but I do for wordpad. I get two
copies when I ask
for it. No problem.

Here is my smb.conf file for my printer.  Don't be mystified by the long
print command. That is just to capture the print job name for debugging
stuff and to get a decent display of the job name in the windows print
queue. I mean, who need to see

The command is really just: /usr/bin/lpr -Pps  -J"$a"  %s; rm %s

where a is captured from the J variable passed by windows to the samba
server. Otherwise, the name is just too long to display, sometimes. If you
don't use the %J variable, you get the silly smbprn.000400.CFI7Uf name.


[ps]
	comment = Filtered for Z53
	path = /tmp
	read only = No
	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 -Pps  -J"$a"  %s;\
                       rm %s
	lpq command = /usr/bin/lpq -Pps
	lprm command = /usr/bin/lprm -Pps %j
	lppause command = /usr/sbin/lpc hold z53 %j
	lpresume command = /usr/sbin/lpc release z53 %j
	share modes = No

Joel





More information about the samba mailing list