On Wed, Jul 26, 2000 at 01:11:54AM +0000, Jim Breton wrote:
> This seems to me like it should be easy.  However, as soon as I add the
> additional pipe to awk, I no longer get _anything_ logged to syslog.

I am only guessing ... could it be some buffering problem?
gawk is not doing output on every line but in e.g 2/4/8 K blocks?

I don't know what exactly you wish to accomplish, but I did a simple
patch to recordio.c that looks for a ENV variable "RECORDIO" and if not
set it does nothing.
This makes it very easy to trace only connections from certain IP
addresses by adding
    RECORDIO=""
to the cdb that tcpserver uses and it's easily (un)set by building a new
CDB.

It's rather easy, in main() just add a
    char *do_recordio;

    do_recordio = env_get("RECORDIO");

and then put the fork() construct in
     if (do_recordio) {
       [ ... fork() ... ]
     }

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Stress is when you wake
Research & Development    | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | realize you haven't
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  | fallen asleep yet.

Reply via email to