Ed Kasky wrote:
>
> Dan Liston wrote on or about Tue, 21 Aug 2001 20:57:57 -0500:
>
> >The syntax above is incorrect. When you use anything other than
> >$list-digest-outgoing, you must use the name of the alias your are
> >sending to in your mkdigest command.
> >mkdigest oes2-test-digest oes2-test-digest-list <digest-password>
>
> Is this the command one would put in a cron job to force the mailing of a
> digest?
Note: that the owner of the cron should be anything but majordomo
or root. Majordomo will not reply to itself with the results.
Here is what "I" do. I am the owner of a list, so I have a shell
account. From my shell prompt, I execute `crontab -e` to edit or
create a crontab file. This can also be done as the majordomo-owner.
This crontab lives on the same host as majordomo.
Here is a sample with lots of comments;
SHELL=/bin/sh
MAILTO="owner-majordomo@domain.tld"
#
# Every Friday morning at ~4:30 AM force digests to be sent
# mail an mkdigest command to majordomo for weekly digests.
30 4 * * 5 echo mkdigest msft-digest msft-digest-0527 msft.admin | mail majordomo
31 4 * * 5 echo mkdigest test-digest test-digest-doit test.admin | mail majordomo
# This broke when I upgraded majordomo to 1.94.5.
# It want my fully qualified email address, so I editted
# line 605 of majordomo.pl to use the 1.94.4 regex.
# if (/\@/ && ! /\./) {
# I changed line 177 of digest to fix another intermittent
# problem where spooled messages were randomly skipped.
# foreach (sort @files) {
#
#| | | | | ^here to % or EOL is field 6 for commands
#| | | | +-- 3 letter day of week or 0-7. 0=Sun & 7=Sun
#| | | +-- 3 letter month or 1-12
#| | +-- day 1-31
#| +-- hours 0-23
#+-- minutes 0-59
If you wanted a daily digest of the list, the easiest way is to set
your maximums high enough to never be used, change -r to -R in your
listname-digestify alias, and set the day of week in crontab to *.
Dan Liston
References:
|
|