Date: Tue, 27 Nov 2001 09:55:59 -0800 From: "Pirzyk, Jim" <Jim.Pirzyk@disney.com> To: Mike Silbersack <silby@silby.com>, Brian Somers <brian@freebsd-services.com> Cc: Robert Watson <rwatson@FreeBSD.org>, Gregory Neil Shapiro <gshapiro@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/etc security Message-ID: <01112709562904.35830@rerun> In-Reply-To: <20011127112119.K39142-100000@achilles.silby.com> References: <20011127112119.K39142-100000@achilles.silby.com>
index | next in thread | previous in thread | raw e-mail
On Tue, 27 Nov 2001, Mike Silbersack wrote:
> Ok, I decided to look most at how the daily run handles its output and
> emulate that approach. This now fixes the To: header, but I've managed to
> break the hostname expansion in the Subject. Can anyone point me as to
> what's wrong in the patches below?
Use "" instead of '' in the mail -s line and then the $host variable will
be expanded.
- JimP
>
> Thanks,
>
> Mike "Silby" Silbersack
>
> --- /usr/src/etc/security Tue Nov 27 11:08:21 2001
> +++ /etc/security Tue Nov 27 11:13:35 2001
> @@ -58,8 +58,6 @@
> yesterday=`date -v-1d "+%b %e "`
>
> host=`hostname`
> -[ $sflag = FALSE ] && echo "To: root@${host}"
> -[ $sflag = FALSE ] && echo "Subject: ${host} security check output"
>
> umask 027
>
> --- /usr/src/etc/periodic/daily/450.status-security Wed Jun 6 14:24:44 2001
> +++ /etc/periodic/daily/450.status-security Tue Nov 27 11:21:52 2001
> @@ -36,8 +36,10 @@
> >$daily_status_security_output 2>&1;;
> *)
> echo " (output mailed separately)"
> + host=`hostname`
> + export host
> sh /etc/security $args 2>&1 |
> - sendmail $daily_status_security_output;;
> + mail -s '$host security check output' $daily_status_security_output;;
> esac;;
> esac;;
--
--- @(#) $Id: dot.signature,v 1.10 2001/05/17 23:38:49 Jim.Pirzyk Exp $
__o Jim.Pirzyk@disney.com ------------- pirzyk@freebsd.org
_'\<,_ Senior Systems Engineer, Walt Disney Feature Animation
(*)/ (*)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01112709562904.35830>
