home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / admin / 6330 < prev    next >
Encoding:
Internet Message Format  |  1992-11-22  |  1.9 KB

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