> From [EMAIL PROTECTED] Fri Jul 28 13:02:31 2000
> Date: Fri, 28 Jul 2000 21:37:21 +0300
> From: Stefanos Armstrong <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: LPRng: Providing accounting feedback ...
>
> Per Lejontand spake thus:
> >
> > On Fri, Jul 28, 2000 at 09:35:21AM -0400, Sebastian Pe�a M. wrote:
> >
> > > No, you are not alone in this problem. The thing is to modify accounting.pl
> > > or whatever you are using as "as:" to print a message to the user an
> > > remove the job when the user is out of paper quota. The thing is that
> > > the usual file descriptors (stdin,stdout and stderr) are pointing to somewhere
> > > else, so if you print to stdout the message will appear in the log file.
> > > Is there is any expert in Perl here? Maybe he/she can give us a hand on this?
> >
> > Well, another thing is the fact that the as filter is processed on the server
> > and i doubt the stdout/err are connected to the client. Havent infact lpr
> > already disconected from the deamon when as is beeing run ?
> >
>
> Perhaps modifying accounting.pl to print a banner-like page with quota
> details instead of the print-job... That way when the user happily goes
> to collect the printout they will see the banner with their quota
> details... hehe Hope they don't flood the printer with banner pages
> after that... not that a failsafe couldn't be implemented easily...
Actually, you need to modify the banner printing program to do this.
I think somebody already asked about this:
as = does accounting at start, writes a message to the '.banner' file
bp = banner printer, sets up banner, puts in the .banner file contents
and removes the .banner file
You can modify the pclbanner code pretty easily to do this:
pclbanner:
if [ -f .banner ] ; then
echo "stuff to set up your font as you like them"
while read line ; do
textline $line 1 1
done < .banner
fi
The psbanner code can be modified in the same way - you
need to set up an array to do this...
Patrick
Patrick Powell Astart Technologies,
[EMAIL PROTECTED] 9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
Consulting 858-874-6543 FAX 858-279-8424
LPRng - Print Spooler (http://www.astart.com)
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------