Hi John, everything can be done/fixed with LPRng, your talking about the swiss-army knife beneath the lpd's ;-)
In your case you should look into the 'control_file_filter' part of the manual, in short words: An entry like this: printer:\ :control_filter=/usr/spool/lp/bin/control_file_filter.sh:\ :rm=windows_server:\ :rp=queue_on_windows_server:\ : in your printcap will activate the filter. The filter will read the controlfile entries from <STDIN> and write the 'new' controlfile to <STDOUT> For ex: [printsrv2] ~lp/etc $ cat /usr/spool/lp/bin/control_file_filter.sh #!/bin/sh while read LINE do echo $LINE | /usr/bin/sed s/\^Ps\*/P/ done Should do it. See http://lprng.org/LPRng-Reference/LPRng-Reference.html#CFLINES for the control file lines and purposes See http://lprng.org/LPRng-Reference/LPRng-Reference.html#OPENDEVICE for a very short description of the filter mechanism hope this helps :-) ~christoph -- /* Christoph Beyer | Office: Building 2b / 23 *\ * DESY | Phone: 040-8998-2317 * * - IT - | Fax: 040-8998-4060 * \* 22603 Hamburg | http://www.desy.de */ On Wed, 25 Aug 2004, John Newbigin wrote: > I am running LPRng-3.7.4 from RHEL2.1. I am attempting to set up > printing to LPR queues on a windows server. The windows server does > accounting based on the name sent from LPRng. > > The problem is that windows usernames are 6 digit numbers (ie 123456) > but the unix usernames are prefixed by an s (ie s123456). I need to > somehow strip the s off the start of the usernames. > > I can easily write a shell script to do this but I don't know how to > hook that into lprng. > > Advice on how to do this (or if it can't be done) would be greatly > appreciated. > > John. > > -- > John Newbigin - Computer Systems Officer > School of Information Technology > Swinburne University of Technology > Melbourne, Australia > http://www.it.swin.edu.au/staff/jnewbigin > > > > > ------------------------------------------------------------------------ ----- > YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST > The address you post from or your Reply-To address 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. > 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, call Patrick Powell or one of the friendly > staff at Astart Technologies for help. Astart also does support for LPRng. > Also, check the Web Page at: http://www.lprng.com for any announcements. > Astart Technologies (LPRng - Print Spooler http://www.lprng.com) > 6741 Convoy Court > San Diego, CA 92111 > 858-874-6543 FAX 858-751-2435 > ------------------------------------------------------------------------ ----- > ----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST The address you post from or your Reply-To address 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. 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, call Patrick Powell or one of the friendly staff at Astart Technologies for help. Astart also does support for LPRng. Also, check the Web Page at: http://www.lprng.com for any announcements. Astart Technologies (LPRng - Print Spooler http://www.lprng.com) 6741 Convoy Court San Diego, CA 92111 858-874-6543 FAX 858-751-2435 -----------------------------------------------------------------------------
