From: Cameron Simpson <cs@zip.com.au>
To: axp-list@redhat.com
Cc: Aaron <spdracer@america.com>
Subject: Re: Massmail scripts for Linux
Date: Fri, 12 Mar 1999 02:26:23 +0000 [thread overview]
Message-ID: <19990312132834-cameron-1-28909@ixus.research.canon.com.au> (raw)
In-Reply-To: Pine.GSO.3.96.990311163845.12741A-100000@enterprise
On 12 Mar 1999, in message <Pine.GSO.3.96.990311163845.12741A-100000@enterprise>
Aaron <spdracer@america.com> wrote:
| A system I administered in the past hired a "consultant". The only
| problem is this person erased a a text file that had all the users names
| in it. I had a script set up so that a users name was appened to this
| file when an account was created, and deleted when the account was
| created. Then a REALLY simple script allowed you to mail all the users.
| Since this change was done months ago (april 1998) ther are no backups!
| NOW I have to come up with another solution, since dumb/cheap consultant
| has dissapeared.
|
| Instead of re-inventing the wheel, I'd thought I'd ask if somone has
| already done this, parsed the users file and sent mail. If not, I'll do a
| perl script and post it to the list, perhaps somone else would need a
| hand :)
Assuming your users all have uids over 100 (which is typical):
tr : ' ' </etc/passwd | awk '$3 >= 100 {print $1}'
I have tested that line and it's a good first cut towards rebuilding your file.
--
Cameron Simpson, DoD#743 cs@zip.com.au http://www.zip.com.au/~cs/
After all, he thought he was God. - FBI agent on why it was difficult
to negotiate with David Koresh
prev parent reply other threads:[~1999-03-12 2:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-11 20:17 21064A D-cache is *KB under Linux (was: lmbench on Linux and DU...) (fwd) B. James Phillippe
1999-03-11 21:43 ` Massmail scripts for Linux Aaron
1999-03-12 2:26 ` Cameron Simpson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox