Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 22:22:53 +0100
From:      "Colin Jack" <colin@mainline.co.uk>
To:        "Mike Meyer" <mwm@mired.org>
Cc:        <questions@freebsd.org>
Subject:   RE: Mailing Users
Message-ID:  <ABEBLEJCDMCJJBELODOEOEOFCHAA.colin@mainline.co.uk>
In-Reply-To: <14829.59984.299814.581924@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

	<mike



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ABEBLEJCDMCJJBELODOEOEOFCHAA.colin>