home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!destroyer!ncar!vexcel!copper!slate!mbarkah
- From: mbarkah@slate.mines.colorado.edu (Ade Barkah)
- Newsgroups: comp.unix.admin
- Subject: Re: Automated accounting of pages printed to PostScript printers
- Message-ID: <1992Nov23.065643.23734@slate.mines.colorado.edu>
- Date: 23 Nov 92 06:56:43 GMT
- References: <By5DK0.4Gp@unix.amherst.edu>
- Organization: Colorado School of Mines
- Lines: 34
-
- twpierce@unix.amherst.edu (Tim Pierce) writes:
- : In article <419@infocom.UUCP> (Philippe Goujard) writes:
- :
- : >Carl Krasnor wrote:
- : >
- : >: As many followers of this group have asked for before, we require software
- : >: to automatically perform accounting of pages printed to a PostScript
- : >: printer. It could be as simple as a running tally of pages printed for
- : >: each user ID on a system.
- : >
- : >... can a simple "grep showpage | wc -l" sort of
- : >script do the trick?
- :
- : No; a PostScript document can have several "showpage" commands on a
- : line. At the very least, you'd need some script to break the document
- : up into tokens, but even then, you wouldn't get around sneaky users
- : who might plug a "/foobar { showpage } def" into the beginning of
- : their document and then use "foobar" instead of "showpage."
-
- Another problem in using this method for accounting (as I understand
- the original poster wanted to do) is when the user cancels the job
- after submitting it. The above method calculates how many pages
- are _supposed_ to be printed, not how many pages are actually printed.
-
- Like the previous poster pointed out, the answer may be more lower-
- level. It might also very much depend on the printer, physical
- printer interface, and what current LP Print Service is being used.
- Perhaps the original poster could be more specific re: his/her
- equipment ?
-
- -Ade.
- --
- Internet : mbarkah@slate.mines.colorado.edu (NeXT Mailable)
- CompuServe: 74160,3404
-