Sponsored Content
Full Discussion: Help!!
Top Forums Shell Programming and Scripting Help!! Post 87554 by supaphat on Tuesday 25th of October 2005 01:04:55 PM
Old 10-25-2005
Fixed a line...see below

#!/bin/sh

# declare variables
RPTDIR="/usr/local/tripwire/tfs/report"
# Incorrect syntax to get basename of file
# this has been corrected
RPTS=`cd $RPTDIR && ls -1 *.twr`
RPTOUT="/export/home/bgalante"

# for every report in your report listing array
for rpt in $RPTS
do
# strip first part of the name
# for example x21nwh51-20051009-060024.twr
# would be x21nwh51
rpthtml=`echo $rpt | cut -d- -f1`
# create html from report and make the name unique
# x21nwh51-20051025-15:11:58.html
twprint -m r -r $RPTDIR/$rpt -o $RPTOUT/$rpthtml-`date +%Y%m%d-%H:%M:%S`.html -F html
done

Last edited by supaphat; 10-25-2005 at 02:20 PM..
 
seaudit-report(8)                                             System Manager's Manual                                            seaudit-report(8)

NAME
seaudit-report - SELinux audit log reporting tool SYNOPSIS
seaudit-report [OPTIONS] LOGFILE ... DESCRIPTION
seaudit-report allows the user to generate custom audit log reports from the command line or by integration with the Logwatch tool. OPTIONS
-s, --stdin Read log data from standard input instead of from a file. File(s) specified on the command line will be ignored. -m, --malformed Include malformed log messages in generated report. -o FILE, --output=FILE Write output to FILE instead of standard output. -c FILE, --config=FILE Read configuration options from FILE instead of the default config file. --html Set output format to HTML instead of plain text. --stylesheet=FILE Specify the HTML stylesheet to use for formatting the HTML report. This option is ignored if --html is not given. See the default styesheet for an example (installed at /usr/share/setools/3.3/seaudit-report.css). -V, --version Print version information and exit. -h, --help Print help information and exit. AUTHOR
This manual page was written by Jeremy A. Mowery <jmowery@tresys.com>. COPYRIGHT
Copyright(C) 2004-2007 Tresys Technology, LLC BUGS
Please report bugs via an email to setools-bugs@tresys.com. SEE ALSO
seaudit(8) seaudit-report(8)
All times are GMT -4. The time now is 12:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy