Great Circle Associates Majordomo-Users
(February 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Confusion on setting up bounce script
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Wed, 5 Feb 1997 11:23:41 -0600 (CST)
To: gregory @ afpubs . hq . af . mil
Cc: majordomo-users @ GreatCircle . COM, jpeek @ jpeek . com
In-reply-to: <199702051600.LAA29841@afpubs.hq.af.mil> from "Scott D. Gregory" at Feb 5, 97 10:55:53 am
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Scott D. Gregory writes: ]
> 
> > From:          Dave Wolfe <dwolfe@risc.sps.mot.com>
> 
> > [ Jerry Peek writes: ]
> > > 
> > > On 3 February, "Scott D. Gregory" <Scott.D.Gregory@afpubs.hq.af.mil> wrote:
> > > > Can I run bounce-remind from majordomo's crontab?
> > > 
> > > Sure.  Here are the lines from my "majordom" user's crontab.  I also
> > > run "bounce -expire" once a week to nuke old entries:
> > > 
> > > 13 2 * * * MAJORDOMO_CF=/usr/local/majordomo/majordomo.cf /usr/local/majordomo/bounce-remind
> > > 44 4 * * 0 /usr/local/majordomo/bin/bounce -expire /usr/local/majordomo/lists/bounces
> > > 
> > > Notice that I'm setting the MAJORDOMO_CF environment variable.  If I
> > > didn't do that, the script wouldn't be able to find the configuration file
> > > (because most environment variables aren't propagated into cron jobs).
> > 
> > I thought that's why (well, at least partly why) all the Mj stuff was
> > run via wrapper: consistent environment.
> > 
> 
> What would you suggest??

Make sure bounce-remind and bounce are in the same directory with
wrapper and use:

13 2 * * * /usr/local/majordomo/wrapper bounce-remind
44 4 * * 0 /usr/local/majordomo/wrapper bounce -expire /usr/local/majordomo/lists/bounces

This also means that these need not be in the "majordom" user's crontab.
Caveat: I don't use bounce and it's kin, so this is all theory and not
experience.

-- 
 Dave Wolfe


References:
Indexed By Date Previous: Re: 1.94.1 permissions problem after install
From: Luca Sambucci <luca@sambucci.com>
Next: Re: Confusion on setting up bounce script
From: Jerry Peek <jpeek@jpeek.com>
Indexed By Thread Previous: Re: Confusion on setting up bounce script
From: "Scott D. Gregory" <Scott.D.Gregory@afpubs.hq.af.mil>
Next: Majordomo on Windows NT
From: Hea Kim <Hea_Kim@amrcorp.com>

Google
 
Search Internet Search www.greatcircle.com