From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078611110258.tru64-unix-managers.marc@archive.invalid> From: Date: Mon, 07 Apr 1997 20:38:54 +0000 To: tru64-unix-managers Subject: Setting printer filesize limits X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078611110258 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.