From 45eefb67498d6708bc591da167414f05bb1a1fe5 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 9 Sep 2009 00:04:51 +0000 Subject: Saving time elapsed in security test --- cron-sh/security.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cron-sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index e810603..df3e9f5 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -77,8 +77,12 @@ if [[ -s ${SECURITY} ]]; then Syslog ${SECURITY} Ttylog ${SECURITY} + TEST_ENDED=`date "+%b %d %H:%M:%S"` + echo "*** Security Check, ${REPORT_DATE} ***" > ${MSEC_TMP} printf "Report summary:\n" >> ${MSEC_TMP} + echo "Test started: $REPORT_DATE" >> ${MSEC_TMP} + echo "Test finished: $TEST_ENDED" >> ${MSEC_TMP} cat ${INFOS} >> ${MSEC_TMP} printf "\nDetailed report:\n" >> ${MSEC_TMP} cat ${SECURITY} >> ${MSEC_TMP} -- cgit v1.2.1