home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / admin / 6328 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!caen!nic.umass.edu!news.amherst.edu!twpierce
  3. From: twpierce@unix.amherst.edu (Tim Pierce)
  4. Subject: Re: Automated accounting of pages printed to PostScript printers
  5. Message-ID: <By5DK0.4Gp@unix.amherst.edu>
  6. Organization: Elitist Usenet Administrators, Stuff & Nonsense Division
  7. References: <1992Nov19.185600.4746@mcshub.dcss.mcmaster.ca> <419@infocom.UUCP>
  8. Date: Mon, 23 Nov 1992 02:28:47 GMT
  9. Lines: 25
  10.  
  11. In article <419@infocom.UUCP> pgoujard@infocom.UUCP (Philippe Goujard) writes:
  12.  
  13. >Carl Krasnor (krasnor@nimios.eng.mcmaster.ca) 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.  
  23. No; a PostScript document can have several "showpage" commands on a
  24. line.  At the very least, you'd need some script to break the document
  25. up into tokens, but even then, you wouldn't get around sneaky users
  26. who might plug a "/foobar { showpage } def" into the beginning of
  27. their document and then use "foobar" instead of "showpage."
  28.  
  29. I think almost certainly you'd want something much more low-level
  30. than this.
  31.  
  32. -- 
  33. ____ Tim Pierce                / 
  34. \  / twpierce@unix.amherst.edu /               Rocks say goodbye.
  35.  \/ (BITnet: TWPIERCE@AMHERST) / 
  36.