From owner-freebsd-questions Wed Oct 18 14:25:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from zog.mainline.co.uk (zog.mainline.co.uk [212.158.6.50]) by hub.freebsd.org (Postfix) with ESMTP id 7E51F37B4CF for ; Wed, 18 Oct 2000 14:25:51 -0700 (PDT) Received: from intergraph ([212.158.6.226]) by zog.mainline.co.uk (8.9.2/8.9.3) with SMTP id WAA29681; Wed, 18 Oct 2000 22:25:41 +0100 (BST) From: "Colin Jack" To: "Mike Meyer" Cc: Subject: RE: Mailing Users Date: Wed, 18 Oct 2000 22:22:53 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <14829.59984.299814.581924@guru.mired.org> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey that's pretty cool! Thanks Colin -----Original Message----- From: Mike Meyer [mailto:mwm@mired.org] Sent: 18 October 2000 19:22 To: Colin Jack Cc: questions@freebsd.org Subject: Re: Mailing Users 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.