[Samba] print job name
Joel Hammer
Joel at HammersHome.com
Thu Aug 22 15:04:01 GMT 2002
This works for me: (lprng):
[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
use client driver = yes
The key is to capture the banner for the job in %J, and use the -J option
when you print. I fuss with truncating this name since some apps send a long
prefix (Microsoft blah blah........... File name
Joel
On Thu, Aug 22, 2002 at 05:43:11PM -0500, Tony McGrew wrote:
> Is there a way foe me to get the print job name to be something other than
> "remote downlevel job"? All my jobs are now printing flawless except for
> this. I would like to be able to get a file name or program at least.
> Thanks
>
> Tony McGrew
> www.multicam.com
>
> --
> 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