For the guys that want to know :

#!/bin/bash
for i in $( cat emails.txt); do
cat msg.txt | sendmail $i
echo Send mail to : $i
done

Thanks,

Pieter

-----Original Message-----
From: Pieter De Wit 
Sent: 11 January 2002 01:43
To: '[EMAIL PROTECTED]'
Subject: Replace text on the command line
Importance: High


Hello Everyone,

I have a file with a bunch of e-mail address in. I would like to now invite
these guys to join a mailing list rather than send it out as a batch. We
used to do this under M$ LookOut Express, but I would like to do it from
Linux.

What I was thinking of is the following :

1) Have a file with all the e-mail address each on there own line....
(emails.txt)
2) Create the message in another text file. (msg.txt)
3) Issue the following command : cat msg.txt | sendmail <address>

And that is where my problem comes. How can I make Linux scripting check the
file and run sendmail for each and every user and put the e-mail address in
?

Thanks,

Pieter





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

Reply via email to