From owner-freebsd-questions Wed Oct 18 11:22:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id F22E337B479 for ; Wed, 18 Oct 2000 11:22:08 -0700 (PDT) Received: (qmail 15175 invoked by uid 100); 18 Oct 2000 18:22:08 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14829.59984.299814.581924@guru.mired.org> Date: Wed, 18 Oct 2000 13:22:08 -0500 (CDT) To: "Colin Jack" Cc: questions@freebsd.org Subject: Re: Mailing Users In-Reply-To: <45357125@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Colin Jack writes: > Is there a way that I can send an email to all users on a server? The idea > is to warn everyone of downtime for maintenance, but with a couple of > hundred users .... there HAS to be an easy way :-) Since nobody mentioned it, *my* favorite way to do this is: $ cd /home $ mail -s "Canned message subject" * < ~/canned-message Anyone who thinks that's an abuse of shell globbing is right, but it's the best you can do when "mail *@localhost" doesn't work properly.