[Samba] can't print over samba

Joel Hammer Joel at HammersHome.com
Tue Mar 18 21:06:06 GMT 2003


I thought you were using cups?
This is of importance because all the print commands depend on your printing
system. You could specify the command in your share, like I do. 

[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; /usr/bin/lpr -Pps  -J'%J' %s; rm %s
# 	print command = echo %J %p %s >>  /tmp/junkJ; /usr/bin/lpr -Pps  -J'%J' %s; rm %s
 	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 ps %j
	lpresume command = /usr/sbin/lpc release ps %j
	share modes = No
        use client driver = yes     




More information about the samba mailing list