Great Circle Associates Majordomo-Workers
(October 1995)
 

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

Subject: Re: Archive Directories
From: dwolfe @ risc . sps . mot . com (Dave Wolfe)
Date: Mon, 9 Oct 1995 15:16:00 -0500 (CDT)
To: cmh @ spiff . ccs . carleton . ca (Colin Henein)
Cc: majordomo-workers @ greatcircle . com (Majordomo developer's mailing list)
In-reply-to: <9510091922.AA26300@journal.biology.carleton.ca> from "Colin Henein" at Oct 9, 95 03:22:14 pm
Reply-to: David Wolfe <david_wolfe @ risc . sps . mot . com>

[ Colin Henein writes: ]
> 
> I got tired of editing the majordomo.cf file to add a new archive
> directory everytime I added a new list (since I want them all in their
> own directories).
> 
> I changed archive2.pl so that it allows you to specify a directory of
> the form "/foo/bar/quux*" in the array of directories in majordomo.cf.
> archive2.pl takes this  to mean that it should expect ONE (and only
> one) subdirectory after /foo/bar/quux and accept it as a valid archive
> directory. 

You didn't have to do that, it's already done. All you need to do is
specify:

    @archive_dirs = </path/to/archive/dir/*>;

Note the angle brackets and lack of quotes. That's a Perl file glob
(similar to a shell file glob, e.g. 'ls *.pl') that returns all files
(and directories, too, unfortunately) in /path/to/archive/dir. Remember
that the majordomo.cf file is executed by Perl, so you can put all sorts
of useful things there (but you probably shouldn't).

-- 
 Dave Wolfe    *Not a spokesman for Motorola*  (512) 891-3246
 Motorola MMTG  6501 Wm. Cannon Dr. W. OE112  Austin  TX  78735-8598


Follow-Ups:
References:
Indexed By Date Previous: Archive Directories
From: cmh@spiff.ccs.carleton.ca (Colin Henein)
Next: Re: Archive Directories
From: cmh@spiff.ccs.carleton.ca (Colin Henein)
Indexed By Thread Previous: Archive Directories
From: cmh@spiff.ccs.carleton.ca (Colin Henein)
Next: Re: Archive Directories
From: cmh@spiff.ccs.carleton.ca (Colin Henein)

Google
 
Search Internet Search www.greatcircle.com