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_at_phy.syr.edu
Computer Systems Manager
Department of Physics
Syracuse University, Syracuse, NY
http://www.phy.syr.edu/~dkirk Fax: (315) 443-9103
--------------------------------------------------------------------------
Received on Wed Nov 17 1999 - 22:12:09 NZDT