From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6399 invoked from network); 12 Mar 1999 02:35:49 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 12 Mar 1999 02:35:49 -0000 Received: from kwanon.research.canon.com.au (kwanon.research.canon.com.au [203.12.172.254]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id VAA26156 for ; Thu, 11 Mar 1999 21:28:16 -0500 Received: (qmail 8588 invoked from network); 12 Mar 1999 02:27:43 -0000 Received: from grainger.research.canon.com.au (203.12.174.130) by kwanon-heat.research.canon.com.au with SMTP; 12 Mar 1999 02:27:43 -0000 Received: (qmail 21671 invoked from network); 12 Mar 1999 02:53:37 -0000 Received: from ixus.research.canon.com.au (203.12.174.80) by grainger.research.canon.com.au with SMTP; 12 Mar 1999 02:53:37 -0000 Received: (from cameron@localhost) by ixus.research.canon.com.au (8.8.5/8.8.5) id NAA28965; Fri, 12 Mar 1999 13:28:35 +1100 (EST) X-mailer: m, by Cameron Simpson Date: Fri, 12 Mar 1999 02:26:23 +0000 Subject: Re: Massmail scripts for Linux References: From: Cameron Simpson Reply-to: cs@zip.com.au Errors-to: cs@zip.com.au Organization: Canon Information Systems Research Australia, Sydney, Oz X-Original-Cc: Aaron Message-id: <19990312132834-cameron-1-28909@ixus.research.canon.com.au> To: axp-list@redhat.com Cc: Aaron On 12 Mar 1999, in message Aaron 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 : ' ' = 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