* printcap if/of flags for accounting
@ 1999-11-17 22:10 Dan Kirkpatrick
0 siblings, 0 replies; only message in thread
From: Dan Kirkpatrick @ 1999-11-17 22:10 UTC (permalink / raw)
To: tru64-unix-managers
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
--------------------------------------------------------------------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-11-17 22:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-17 22:10 printcap if/of flags for accounting Dan Kirkpatrick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox