#!/bin/sh # shell script to run seaudit-report on STDIN # SEAUDITREPORT=@bindir@ OPTS="--stdin --malformed" echo "Date Range: $LOGWATCH_DATE_RANGE" echo "Detail Level: $LOGWATCH_DETAIL_LEVEL" echo "Temp Dir: $LOGWATCH_TEMP_DIR" echo "Debug Level: $LOGWATCH_DEBUG" # execute the program with the specified options ${SEAUDITREPORT} ${OPTS} # program failed if [ $? -ne 0 ]; then RC=$? echo >&2 "Failed while executing seaudit-report.\n" exit $RC fi # All done, exit ok exit 0