[Samba] Print Command
Joel Hammer
Joel at HammersHome.com
Mon Sep 9 23:20:01 GMT 2002
Yes. It is %J
Here is what I do and it works with lprng.
Joel
[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
On Tue, Sep 10, 2002 at 08:56:43AM +1000, Jeffrey Borg wrote:
> Hi
>
> Is there are % variable which is the name of the job as seen on the windows
> print manager. So that I can use the -J option with lprng and get it
> displayed on the printer screen.
>
> Thanks
> Jeffrey Borg
>
>
> --
> 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