I don't know anything about lpr ports, but, if you are sending your job to a
server with an lpd deamon and using lprng to process the job, this might
work.
The secret is that the %J variable contains the windows file name.
So, if you use that for the jobname with the -J option, it shows up in
your queue back on windows.
The echo command and sed command are to remove the long prefix from some
documents so you can really see the file name.
Joel
[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
On Sat, May 18, 2002 at 02:36:31PM -0400, AJRelli wrote:> Hello,
> I have samba set up on a solaris 8 box. I set up a printer using an lpr
port. When I send a job from a client through the queue on the samba box to the
printer, the job shows up on the printer queue with the job name changed to a
generic name such as smb20***. Does any one know why this is happening. Is there
a configuration file that needs to be edited to allow the job name to pass
through samba and go to the printer?
> Any help is appreciated.
>
> Tony