From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079085416279.tru64-unix-managers.marc@archive.invalid> From: Dan Kirkpatrick Date: Wed, 17 Nov 1999 22:10:12 +0000 To: tru64-unix-managers Subject: printcap if/of flags for accounting X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079085416279 Has anyone else used the flags in the printcap if and of filters to use with scripts? I'm trying to utilize the filters to grab page counts before and after printing from the printer. I can't seem to grab the flags... I've tried the simplest of scripts like #!/bin/bash echo $1,$2,$3,$4,$5 >> /tmp/test.out but get nothing... and the page prints... The man page mentions the output filter is only opened once, anyway to have an output filter open every time like the input filter. Any hints on how this xf passthrough filter works? Thanks... from the printcap man page: >The if filter is invoked with arguments according to the following format: > if [-c] -wwidth -llength -iindent -nlogin -hhost acct-file >... >The if filter is opened for all individual jobs, which makes it suitable > for accounting. When the if filter is not specified, the system uses the of > filter as the default value. The of filter however, is opened only once and > is only given the -wwidth and -llength flags. > > All other filters are called according to the following format: > > filter -xwidth -ylength -nlogin -h host acct-file --Dan -------------------------------------------------------------------------- Dan Kirkpatrick dkirk@phy.syr.edu Computer Systems Manager Department of Physics Syracuse University, Syracuse, NY http://www.phy.syr.edu/~dkirk Fax: (315) 443-9103 --------------------------------------------------------------------------