tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dan Kirkpatrick <dkirk () suhep ! phy ! syr ! edu>
To: tru64-unix-managers
Subject: printcap if/of flags for accounting
Date: Wed, 17 Nov 1999 22:10:12 +0000	[thread overview]
Message-ID: <96079085416279.tru64-unix-managers.marc@archive.invalid> (raw)

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
--------------------------------------------------------------------------

                 reply	other threads:[~1999-11-17 22:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox