Date: Thu, 20 Feb 1997 10:02:20 +1100 (EST) From: "Daniel O'Callaghan" <danny@panda.hilink.com.au> To: Chris Shenton <chris@absinthe.i3inc.com> Cc: isp@freebsd.org Subject: Re: Script to send mail to all users? Message-ID: <Pine.BSF.3.91.970220095847.8268s-100000@panda.hilink.com.au> In-Reply-To: <199702191638.LAA20726@absinthe.i3inc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 19 Feb 1997, Chris Shenton wrote: > I'm looking for a script to send mail to all users in my /etc/passwd > file; anyone got one? I'd rather plagiarize than write from scratch. :-) Well, you could start with something like: awk -F ':' \ '{print "/bin/Mailmail -s \"Daily Bulletin \" " $1 \ " < /tmp/bulletin.txt"}' | sh But that would start a new mail process for each user. Danny
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970220095847.8268s-100000>