From owner-freebsd-isp Wed Feb 19 14:58:13 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id OAA24435 for isp-outgoing; Wed, 19 Feb 1997 14:58:13 -0800 (PST) Received: from panda.hilink.com.au (panda.hilink.com.au [203.2.144.5]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA24430 for ; Wed, 19 Feb 1997 14:58:06 -0800 (PST) Received: (from danny@localhost) by panda.hilink.com.au (8.7.6/8.7.3) id KAA06249; Thu, 20 Feb 1997 10:02:21 +1100 (EST) Date: Thu, 20 Feb 1997 10:02:20 +1100 (EST) From: "Daniel O'Callaghan" To: Chris Shenton cc: isp@freebsd.org Subject: Re: Script to send mail to all users? In-Reply-To: <199702191638.LAA20726@absinthe.i3inc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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