[clue-tech] local mass emailer
Keith Hellman
khellman at mcprogramming.com
Fri Jun 3 17:29:26 MDT 2005
On Fri, Jun 03, 2005 at 06:17:00PM -0400, Angelo Bertolli wrote:
> Keith Hellman wrote:
> >On Fri, Jun 03, 2005 at 05:33:07PM -0400, Angelo Bertolli wrote:
> >>Is there a command/program in Linux for emailing every user on the
> >>system? In particular just using cat >> to their mailboxes won't work
> >>since it should obey .forward too.
> >mail <options> $(cat /etc/passwd |cut -d : -f 1)
Yes. If your going to have to maintain this, perhaps you should
consider creating a group (gid) for all the users? Then you can use all
the common nix tools for maintainence and just awk/sed/perl/... the
/etc/group file for the distribution list.
--
Keith Hellman #include <disclaimer.h>
khellman at mcprogramming.com from disclaimer import standard
public key @ www.mcprogramming.com
"One World, one Web, one Program." - Microsoft(R) promotional ad
"Ein Volk, ein Reich, ein Fuhrer." - Adolf Hitler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://cluedenver.org/pipermail/clue-tech/attachments/20050603/c485b496/attachment.bin
More information about the clue-tech
mailing list