In the majordom user's cron, I have the following line:
0 1 1 * * /opt/md/monthly_email.pl
The monthly_email.pl file looks like (3 lines only):
system "cat /opt/md/monthly_email | /usr/sbin/sendmail -fmajordomo-owner\@mydomain.com -oi `ls|grep -v config|grep -v info|grep -v post|grep -v intro|grep -v restrict|grep -v bounce`";
And the monthly_email file contains whatever text you want it to. Mine
has two header lines, a Subject and a Reply-To line, plus a reminder
about my emailgroups main-page, which has links to majorcool and the
various forms I've created to make life easier for the group members and
for the group owners, such as how to retrieve majordomo help, etc.
On Sat, 2002-10-12 at 06:13, Michael Talbot-Wilson wrote:
> I am using Majordomo 1.94.5 on Linux.
> I would like to send a monthly message to the list but haven't found
> documentation on that. The message should appear to come from the
> list owner and I want the majordomo owner to send it with cron. I
> don't know if there is a better idea.
> Have tried this:
> cat $LIST.message | resend -d -C $HOME/lists/$LIST.config \
> -h $HOST.$DOMAIN -l $LIST \
> -r $LIST@$HOST.$DOMAIN \
> This produces scads of errors which in summary show or say that the
> config file is not a valid Perl program. But it hasn't been recently
> changed and the list seems to work.
> What am I doing wrong?
> --Michael Talbot-Wilson
Karl L. Pearson
Senior Consulting Systems Analyst
Senior Consulting Database Analyst
My Thoughts on Terrorism In America:
A right is not what someone gives you; it's what no one can take from
-- Ramsey Clark