Actually, I have figured out how to do this. I put a file in cron.d:
00 2 * * * root (diff maillist maillist.bak | mail -s "Daily
majordomo output from BQ Server" admin (at mark) domain.com | cp -f maillist
maillist.bak)
This works great, with one exception: if there is no diff output, the
command will send a blank email message to admin (at mark) domain.com. What should I
do to avoid sending a message if the diff results are null?
> -----Original Message-----
> From: Darrell D. Mobley [mailto:dmobley (at mark) uhostme.net]
> Sent: Friday, August 11, 2006 3:01 PM
> To: coba-e (at mark) bluequartz.org
> Subject: [coba-e:06325] Request CRON command
>
> I would like to add a cron command that backs up an existing BQ site's
> majordomo mailing list each night, then diff's the two and email me the
> diff. Essentially, this would create a copy of the majordomo list and
> then
> alert me to additions to the list each day.
>
> Can someone help me with creating the proper commands to add to cron to do
> this?
>