Re: [Samba] Scrambled Jobnames when Printing

2002-12-18 Thread Joel Hammer
Nothing specific, but, the file name is in the %J variable. You might try to
capture that and put in into your script. I have to explicitly use this
trick to get the right file name to show up in the windows queue, like so:

  print command = /usr/bin/lpr -Pps -J'%J' %s; rm %s

Joel

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Scrambled Jobnames when Printing

2002-12-18 Thread Gavin-Francis Fernandes
Dear Samba!

I use a perl script to move print jobs around for users, and there is a custom 
printer interface to pick up the jobs. Windows clients print to the samba 
printer, which basically moves the job to another share to be picked up by the 
print server client, depending on the users \\Machine Name.  A sample from the 
conf file:

[tcacol-prn]
   comment = Printer for Colour at Talss CA
   path = /var/spool/samba
   public = yes
   writable = no
   printable = yes
   create mode = 0700
   print command = /usr/bin/perl /home/lxp/bin/lxp.pl "%m" "%
s" /home/lxp/spool/tcacol-spool/ 2>> /home/lxp/logs/lxpprt.log

Everything works perfectly - however, as users migrated from W98 to W2k & 
winXP the Print Jobnames that they've been using have been turning into 
something similar to "smbprn.003702.d4aZ5g" 

I don't understand why - however if you print to a windows printer queue - the 
name of the document turns up perfectly.

Any Ideas?

-- 
Gavin-Francis Fernandes
SCPS - Systems TeamLeader
Queensland University of Technology
Phone: 3864 1289
Email: [EMAIL PROTECTED]



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba