From owner-freebsd-isp Wed Feb 19 09:17:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA03841 for isp-outgoing; Wed, 19 Feb 1997 09:17:43 -0800 (PST) Received: from bigpuppy.newell.arlington.va.us (mcnsisdn.newell.arlington.va.us [206.27.237.14]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA03830 for ; Wed, 19 Feb 1997 09:17:33 -0800 (PST) Received: from localhost (mnewell@localhost) by bigpuppy.newell.arlington.va.us (8.6.12/8.6.9) with SMTP id MAA00169; Wed, 19 Feb 1997 12:13:03 -0500 Date: Wed, 19 Feb 1997 12:13:02 -0500 (EST) From: Mike Newell 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 It's actually a pretty trivial script; you just read each line, parse out the first element (I used awk for that), and use Mail(1) to send the message. Mike On Wed, 19 Feb 1997, Chris Shenton wrote: chris> Date: Wed, 19 Feb 1997 11:38:46 -0500 chris> From: Chris Shenton chris> To: isp@freebsd.org chris> Subject: Script to send mail to all users? chris> chris> I'm looking for a script to send mail to all users in my /etc/passwd chris> file; anyone got one? I'd rather plagiarize than write from scratch. :-) chris> chris> Thanks. chris> Much obliged, Mike +--------------------------------------+------------------------------------+ | Mike Newell | The opinions expressed herein | | Affiliation: | are mine. You can take them or | | Address: | leave them. Flames to /dev/null. | +--------------------------------------+------------------------------------+ | Mike@Newell.arlington.va.us | http://www.newell.arlington.va.us | +--------------------------------------+------------------------------------+ | "Peace. It's wonderful!" Father Divine. | +---------------------------------------------------------------------------+