Thanks for the info. I will give that a try. In the mean time I
modified Get_user_information to do the check and truncate the name if
required. I figured there would be a better way though.
I just need to test how the RedHat tools will clobber my printcap...
John.
[EMAIL PROTECTED] wrote:
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
--
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
-----------------------------------------------------------------------------