Here's another alternative that I've used for sometime now:

1) create a cron job that runs the following script daily (I put this script
in /etc/cron.daily):
#!/bin/sh
awk -F: '{ print $1 }' /etc/passwd | grep -vxFf /etc/exclude | sort >
/etc/allusers

2) create the file /etc/exclude.  This file contains the list of users from
/etc/passwd that are to be excluded from the mailing list

3) the list of user names is now contained in /etc/allusers.  Simply send an
email to '[EMAIL PROTECTED]'

I can't for the life of me remember who came up with this script originally
else I would certainly give him credit.

HTH,
Mike

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Skrogstad
Sent: Friday, October 27, 2000 11:18 AM
To: Red Hat Mailing list
Subject: Mailing List


I have about 1900 users on my system and I am looking for a fast and EASY
way to mail all of my users and tell them about things happening on our
network.  I have played with Majordomo but I try and send a message to the
list that I have created and nothing happens.  I don't get any errors and
I don't get the mail sent.  Maybe I am looking in the wrong place.

Any suggestions?

Scott Skrogstad
Computer Integration Inc,
[EMAIL PROTECTED]
800-522-3475 Phone



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to