Hey you said :that's not terribly efficient, nor terribly safe;
Why it is not efficient?
Why it is not terribly safe?
BTW .. I know most of you are saying to use a mailing list manager ... I
know I know I know, but I'm doing this on my own for the fun of it. And
if it works... why not?
Eric
#!/bin/sh
tmp=/tmp/`basename $0`.$$; trap "rm -rf $tmp" 0
umask 077; mkdir $tmp || exit 1
cat >$tmp/message
(echo '#!/bin/sh';echo '/usr/lib/sendmail "$@" <'$tmp/message)
$tmp/sender
chmod 755 $tmp/sender
xargs $tmp/sender <addrss.txt
There's lots of ways to do it; that's just the first that leaps to mind.
But
that's not terribly efficient, nor terribly safe; if you are dealing
with a
big enough mailing list to break shell backtick expansion, then you
probably
ought to be using a serious mailing list manager. These include ezmlm,
smartlist, majordomo, and I'm sure many many others.
-Bennett