On Fri, Aug 17, 2001 at 04:13:30PM -0400, Michael Sanders wrote: > Here's an infinitesimal elaboration which takes addresses from > one file and the message text from a second. Someone else can > show how to use a multi-word subject. > > > #!/bin/sh > # > if [ $# -ne 3 ] ; > then > echo "Usage: `basename $0` AddressFile MessageFile Subject(one word)" ; > exit 1; > fi > # > if [ ! -r $1 ] > then > echo `basename $0`: File $1 not found! > exit 2 > fi > if [ ! -r $2 ] > then > echo `basename $0`: File $2 not found! > exit 3 > fi > # > cat $1 | while read LUSER; > do cat $2 | mutt -s $3 $LUSER > done > exit 0 > To include multiword subjects, either use _ instead of a space or enclose the subject in "" on the command line and enclose all your variables in "", like, | mutt -s "$3" "$LUSER" Joel _______________________________________________ http://linux.nf -- [EMAIL PROTECTED] Archives, Subscribe, Unsubscribe, Digest, Etc ->http://linux.nf/mailman/listinfo/linux-users