> From [EMAIL PROTECTED] Mon Sep 15 09:01:57 2003 > Date: Mon, 15 Sep 2003 10:47:03 -0400 > From: Rick Cochran <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: LPRng: validating users and forcing simplex > > William C Beegle wrote: > > We have some "public" printers that are usable by anyone on our network. > > There are two problems that we're running into with these printers, and I > > was wondering if anyone here had some suggestions. > > > > 1) We need the real FQDN, not the one that the machine reports in the > > control file. IP address would also be okay, if a little less convenient. > > If a Windows machine prints to the printer, the logs report the windows > > machine name (which can be anything), rather than the real hostname. > > Adding force_fqdn_hostname doesn't help. > > force_ipaddr_hostname > > > 2) We don't control the machines that are using these printers, which > > means we don't control the PPDs or print settings on client machines (that > > seems to be how most people handle it). We really want to force duplex on > > ALL print jobs. They're HP 8150 printers. "append_z=duplex" and setting > > duplex on the front of the printer catch generic postscript jobs where > > simplex/duplex isn't specified, but they don't catch jobs that are > > explicitly set to simplex (which is all of them from Windows and MacOS X, > > by default). I'm thinking that a sed script to change all of the PS files > > is my only option. Are there other tricks? > > Because of random line terminators I don't think that sed will work. > > It's possible that the foomatic filter may save us. > > -Rick > > -- > |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]|
Well, not quite. The foomatic-rip filter appears to put the PostScript code for the options at the START of the various PostScript document sections, rather than the end. Of course, it is possible to add an 'override' option to the foomatic-rip filter to cause it to put them at the end. The REAL problem is when you have PCL files. You have to rip out the simplex/duplex codes and replace them with the requested ones. This can prove to be a bit of a pain. You have to do the following: a) put the codes at the start of the document. b) rip out any codes that are in the document. I am currently revisting all of this stuff and may have a bit of a better solution. No promises now. Patrick Powell ----------------------------------------------------------------------------- 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. -----------------------------------------------------------------------------
