Setting printer filesize limits

From: <chan_ji_at_central.printronix.com>
Date: Mon, 7 Apr 1997 13:38:54 -0700

I wish to prevent users from printing to a printer if the filesize is
greater than a predefined limit. I spotted a printcap parameter 'mx'
that seemed to be what I needed. I set it equal to 2. When I sent a 5Mb
file to test, the printer started printing. The printer is a remote
printer connected to a HP JetDirect box.

My questions:
1. 'mx' is defined in BUFSIZ blocks. How do I find out what size
BUFSIZ is?
2. Does the 'mx' parameter prevent printing only AFTER the file has
already printed the limit?
3. I wish to prevent printing of the whole file if it is greater than
the limit. How do I do this?


Here is the definition of 'mx' from the lprsetup help:

The 'mx' parameter specifies the maximum allowable filesize
(in BUFSIZ blocks) printable by each user. Specifying mx=0
removes the filesize restriction entirely. If this parameter
is not specified, the default value of 1000 blocks is assumed.
The 'mx' parameter effects the size of the job on the machine
that the lpr command was executed.

Thank you very much.
Received on Mon Apr 07 1997 - 22:53:48 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT