%J to print filename in windows 2000

Gerald (Jerry) Carter jerry at samba.org
Thu Oct 10 13:59:00 GMT 2002


Please post general use questions to the samba at samba.org 
list (see http://lists.samba.org/listinfo/samba for details).
The samba-technical mailing is for discussions of Samba 
internals and development issues.  Thanks.

Probably the fist comment you will receive is to upgrade :-)
Pleas test against 2,2.6rc2



cheers, jerry


On Thu, 10 Oct 2002, Jonathan Michael Hawkins wrote:

> Hello--
> 
> I've been perusing the lists searching for a solution to my problem.  
> This problem exists in Samba 2.2.2 and Samba 2.2.5 with LPRng 3.7.4 on a
> RedHat Linux 7.2 server, with Windows 2000 and Windows XP clients.
> 
> What's happening is that filenames are not getting passed to lpr.  After 
> perusing the lists and newsgroups I found that adding "-J'%J'" to the lpr 
> command is supposed to fix the issue.
> 
> However, this is not what appears to be occurring.  Instead, in 2.2.2 it 
> remains "smb.prn" or "smbprn.XXXXXX" with XXXXXX being a pseudo-random 
> number.  I'd hope that it is possible to have, say "mydocument.doc" come 
> up when I'm printing that, in order to facilitate job logging and printer 
> accounting.
> 
> My instincts tell me this is an NT issue, but it's one that would be nice 
> to have resolved.  Can anyone give me some pointers on where to begin 
> searching the code for NT printing, or have any ideas?  I've looked 
> through and found where the %J option gets set by Samba in printing.c, but 
> have not been able to track down where that's supposed to get passed from 
> nor why it's not happening.
> 
> Pointers to documentation, etc., or a solution, would be greatly 
> appreciated.
> 
> Thanks!
> 
> Jonathan Hawkins
> 

-- 
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "SAMS Teach Yourself Samba in 24 Hours" 2ed.       ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba-technical mailing list