ASDIC

Wui Report



NAME

wui_report - report generator

SYNOPSIS

/opt/asdic/bin/wui_report [-u] [-g] [-x <n>]

DESCRIPTION

Generates report mail. The output, if any, can be piped into sendmail -t.

OPTIONS

-u
Update reported time for reported "predefined search".
-g
Generate GIF pictures instead of PNG (used in Lotus Notes environment).
-x <n>
Run report n instead of first runnable.

ENVIRONMENT

BASEHREF
Source where to fetch static html data (e.g. icons and style sheets) in mail reports, default www.ping.se.
HOST
Used as hostname in mail body instead of the default hostname(1).

RETURN VALUE

Returns 1 if a report was generated, -1 if a report was run but did not render any hits, and zero if no reports are pending.

EXAMPLE

Report loop to generate and mail all pending reports;

    wui_report -u > report-mail.txt
    RV=$?
    while [ $RV != 0 ] ; do
        if [ $RV = 1 ] ; then
            sendmail -t < report-mail.txt
        fi
        wui_report -u > report-mail.txt
        RV=$?
    done

CREDITS

Boutell for the GD Graphics Library used in wui_report.

Ping Research

ASDIC