> At the risk of starting another "Why are you duplicating
> Rules_du_jour ?"
> aregument . . . :-)
>
> Since people say it needs to be updated, here is a little
> piece of perl I
> use to update my scripts. I wrote it after being completely
> perplexed by the
> rules_du_jour shell script(s).
>
> It's a simple 30 line perl program. It takes a list of file
> names on STDIN,
> parses them for the "# Current Home:" comment found in SARE
> files, and uses
> LWP::Simple to mirror the file locally. I had intended to
> continue with
> automation on this but never did, electing to perform and
> test my updates
> manually. Anyone who wants to continue with this idea go ahead.
>
> I have a sendbox area where my /etc/mail/spamassassin is
> duplicated for
> testing/updating. I run:
>
> ls 7*.cf 9*.cf | SAmirror.pl
>
> in the sendbox. If anything is updated, I have spamassin lint
> my sandbox,
> and if it passes use rsync to update the live files.

Maybe something like this?

At the risk of duplicating the RulesDuJour concept, but this method
actually works on Windows where RulesDuJour would require setting up a
*nix-type environment.

On Windows, try:
dir /b 7*.cf 9*.cf | perl Samirror.pl

Bret

Attachment: SAmirror.pl
Description: Binary data

Reply via email to