From bca9cc64ca6a283f8e05d233da0d58a9ce6fe6e4 Mon Sep 17 00:00:00 2001 From: Yoann Vandoorselaere Date: Sun, 19 Dec 1999 20:44:31 +0000 Subject: *** empty log message *** --- cron-sh/diff_check.sh | 10 +++++----- cron-sh/security_check.sh | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index 006a26d..751b01d 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -28,11 +28,11 @@ Syslog() { } Ttylog() { - if [[ ${TTY_WARN} == yes ]]; then - for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do - echo -e "$1" > /dev/$i - done - fi + if [[ ${TTY_WARN} == yes ]]; then + for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do + cat ${1} > /dev/$i + done + fi } ################## diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh index aafa294..b4842b2 100755 --- a/cron-sh/security_check.sh +++ b/cron-sh/security_check.sh @@ -36,7 +36,7 @@ Syslog() { Ttylog() { if [[ ${TTY_WARN} == yes ]]; then for i in `w | grep -v "load\|TTY" | awk '{print $2}'` ; do - echo -e "${1}" > /dev/$i + cat ${1} > /dev/${i} done fi } @@ -259,6 +259,7 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then fi fi + ### Report if [[ -s ${SECURITY} ]]; then Syslog ${SECURITY} -- cgit v1.2.1