Actually, the previous idea in the original message
below won't work, but here is an example that will.
You can leave this file in majordomo folder or
majordomo/bin and call it whatever you want.
Just adapt the addresses, paths, digest name
password as necessary.
Remember to chmod it to 777!
use this crontab entry: (every night at 11:30pm.) -
__________________________________
30 23 * * * /path/to/file/makedigest.pl
use this perl doc - makedigest.pl:
__________________________________
#!/usr/bin/perl
open (MAIL, "|/usr/sbin/sendmail majordomo\@myaddress.com") ||
&Error("Can\'t open sendmail!");
print MAIL "From: Cron Daemon <me\@myaddress.com>\n";
print MAIL "To: majordomo\@myaddress.com\n";
print MAIL "Subject: Digest Sent\n\n";
print MAIL "mkdigest <list-digest> <password>";
close (MAIL);
___________________________________
Pretty simple, eh?
Chris
----- Original Message -----
From: "Chris Sparnicht" <chris@grrn.org>
To: <majordomo-users@greatcircle.com>
Sent: Tuesday, July 17, 2001 12:11 PM
Subject: Re: DIGEST Password In CRON Script
> Thanks Mark!
>
> I get it now - 'mkdigest' is a command being sent via email to
> majordomo and is not the name of a file in the majordomo folder.
>
> However, my digest doesn't seem to be going out daily, as
> it is set in the digest maxdays field. For that reason, I want to set
> up a crontab that does it automatically once a day.
>
> If I were to set up this in crontab:
> 30 23 * * * echo '/path/to/file/myfile.txt' | mail majordomo@myaddress.com
>
> where myfile.txt contains:_______________
> From: me@myaddress.com
> To: majordomo@myaddress.com
> Subject: Send List Digest
> Reply-To: me@myaddress.com
>
> mkdigest <list-digest> <password>
>
> EOF
> ________________________________
>
> Would it work?
>
> Crontab sends all mailed responses to my superuser account
> where a sender is not supplied.
> Would this send an email to majordomo and reply to me
> appropriately rather than to the superuser address?
>
> Chris
>
> ----- Original Message -----
> From: "Mark Rauterkus" <Mark@Rauterkus.com>
> To: "Chris Sparnicht" <chris@grrn.org>; "MajorDomo Users"
> <majordomo-users@greatcircle.com>
> Sent: Monday, July 16, 2001 11:03 PM
> Subject: Re: DIGEST Password In CRON Script
>
>
> > > Does the digest automatically go out
> > > using a particular parameter if none are set?
> >
> > It is in the listname-digest.config file. There is a default in there.
> That
> > is what I bet is happening.
> >
> > > I didn't set any, and it seems to go out once
> > > every couple days.
> > Look closer in the file mentioned above.
> >
> > > It's certainly not set in
> > > crontab.
> > Right. The talk on the crontab must have been for another reason.
> >
> > > I've noticed that it seems to go out
> > > right after a member sends the first post
> > > of the day on which it decides to send.
> > >
> > > Also, is mkdigest part of majordomo or part
> > > of sendmail? I didn't see it in my majordomo/bin
> > > folder.
> >
> > Majordomo.
> >
> > Mark R.
> >
>
|
|