here it is. please feel free to correct me. --- Patrick Powell <[EMAIL PROTECTED]> wrote: > Right. On the list. > > Could I get the following: > > a) explanation of how the popup on Windows works (for the recipe). > > b) Samba configuration changes (if any) to make this work.
a) explanation of how the popup on Windows works (for the recipe). On windows 95 or 98, WinPopup need to be running to receive WinPopup messages. With Windows NT or Windows XP, you can receive message without starting it. Message will automatically appear in a small dialog box on the scren when received. Windows popup message gives users quick feedback about what is going on with their print jobs. For Windows 95/98, justpop.exe is a good choice if you don't want to run Winpopup on client machine. Find it here (no need to install). http://www.zinkwazi.com/tools/justpop.exe b) Samba configuration changes (if any) to make this work. Add one option to the 'print command' in smb.conf like this: print command = lpr -r -CREMOTEIP=%I -P%p %s then in accounting.pl, use following line to get the hostname $host = scalar gethostbyaddr(inet_aton($remote_ip),AF_INET) if (($remote_ip) = $opt{C}=~ /REMOTEIP=(.*)/); I must thank Ryan Novosielski and Rick Cochran for sharing justpop.exe and this idea of getting remote hostname with us. Qiang > > From [EMAIL PROTECTED] Wed Jan 7 13:13:13 2004 > > Date: Wed, 7 Jan 2004 15:37:23 -0500 (EST) > > From: "James.Q.L" <[EMAIL PROTECTED]> > > Subject: maybe this should go to the cookbook Re: LPRng: changing host name > > To: [EMAIL PROTECTED] > > > > 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. > > ----------------------------------------------------------------------------- > > > > ----------------------------------------------------------------------------- > 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. -----------------------------------------------------------------------------
