how many times have you answered the same question, Rick ? :) i think this answer would be perfect to go into the LPRng cookbook.
Qiang. --- Rick Cochran <[EMAIL PROTECTED]> wrote: > In smb.conf: > > print command = /usr/common/LPRng/bin/lpr -P%p -CSOURCE=SAMBA,REMOTEIP=%I -r %s > > or something like that. You can then write a filter to rewrite the control file > in LPRng before sending it on. > > -Rick > > Derek Wanless wrote: > > I have a Samba server which users LPRng 3.8.19 as released with Redhat > > 9. The server does not do any actual printing but forwards the print > > jobs to one of 2 print servers depending upon whether the printer to be > > used is accounted or not. My problem is that I need the server that > > deals with accounted printers to know the name/IP address of the PC that > > generated the print job rather than the name of the samba server that > > issued the lpr command i.e. override the value of the 'H' line in the > > control file with the %M samba value. Can this be done and, is so, then > > how? > > > > -- > |Rick Cochran phone: 607-255-7618| > |Cornell CIT - Systems & Operations - Net-Print FAX: 607-255-8521| > |730 Rhodes Hall, Ithaca, N.Y. 14853 email: [EMAIL PROTECTED]| > > > ----------------------------------------------------------------------------- > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST > The address you post from MUST be your subscription address > > If you need help, send email to [EMAIL PROTECTED] (or lprng-requests > or lprng-digest-requests) with the word 'help' in the body. For the impatient, > to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] > with: | example: > subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] > unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] > > If you have major problems, send email to [EMAIL PROTECTED] with the word > LPRNGLIST in the SUBJECT line. > ----------------------------------------------------------------------------- ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
