tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Setting printer filesize limits
@ 1997-04-07 20:38 chan_ji
  0 siblings, 0 replies; only message in thread
From: chan_ji @ 1997-04-07 20:38 UTC (permalink / raw)
  To: tru64-unix-managers


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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-04-07 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-07 20:38 Setting printer filesize limits chan_ji

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox