Greetings,
I have to rewrite the string %%Pages: # to %%Pages: in the postscript submitted to
my lprng servers and am having a heck of a time trying to figure out how to do this.
I was thinking of adding a line in the printcap that would look something like this:
filter=( /path/to/filter | /path/to/ifhp $* )
The first filter would check if file is postscript then
while ( <STDIN> )
{ $_ =~ s/^%%Pages:\s+\d+/%%Pages: /;
print;
}
and feed this to ifhp.
Is this correct?
The reason for doing this is I use my lprng queues as bounce queues to a print manager
plus accounting server. Print Manager Plus simply trusts %%Pages: if it has a value.
If it has no value it will recount.
Thanks,
Dean
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------