Newsgroups: comp.lang.postscript Path: utzoo!utgpu!cunews!micor!latour!ecicrl!clewis From: clewis@ferret.ocunix.on.ca (Chris Lewis) Subject: Re: postscript accounting Message-ID: <1991Mar21.050611.14214@ferret.ocunix.on.ca> Date: Thu, 21 Mar 91 05:06:11 GMT Distribution: comp References: <1475@vidiot.UUCP> <1111@eba.eb.ele.tue.nl> Organization: Elegant Communications Inc, Ottawa, Canada In article <1111@eba.eb.ele.tue.nl> wjw@eba.eb.ele.tue.nl (Willem Jan Withagen) writes: >Well here you've got a little problem. I'm planing to hook a HP-LJ II with >PS-cartridge to an Apollo-workstation. And this through the parallel port. >This'll get me some performance for those wanting to use PCL and bitmaps. >This make it imposible to get info from the printer. I know that this is >stupid, since the printer could return info on print jobs. But then this >is the way it's going to be. If the things you're printing use the Document Structuring Convention, you could simply do a grep "%%Page:" | wc to find out the page count. Of course, this isn't generally applicable - if the file isn't DSC-compliant. But will work with a lot of things (like psroff, groff and probably Transcript) (psroff has an option to feed the page count back up the serial line too) -- Chris Lewis, clewis@ferret.ocunix.on.ca or ...uunet!mitel!cunews!latour!ecicrl!clewis Psroff support: psroff-request@eci386.uucp, or call 613-832-0541 (Canada) **** somebody's mailer is appending .bitnet to my From: address. If you see this, please use the address in the signature, and send me a copy of the headers of the mail message with the .bitnet return address. Thanks!