Great Circle Associates Majordomo-Workers
(November 1996)
 

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

Subject: Re: config-test
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: Wed, 27 Nov 1996 16:46:56 -0600
To: brozen @ webdreams . com
Cc: majordomo-workers @ greatcircle . com
In-reply-to: Your message of "Wed, 27 Nov 1996 17:30:36 -0500 (EST)"
References: <Pine.OSF.3.95.961127172657.8858F-100000@webdreams.com>

>>>>> "BR" == Brock Rozen <brozen@webdreams.com> writes:

BR> Thus having config-test use the config file is very important, since it
BR> would also have to test permissions based on the directories specified
BR> in the config file.

Ah, yes, I forgot about that.

BR> How WOULD I try it though if I have the config files in a seperate
BR> directory than the executables? It changes the whole scenario and
BR> config-test should be able to handle that.

Good point.  Enclosed is the minimal patch which allows this (perhaps not
for inclusion, but at least for proof-of-concept).  You can call
config-test like

wrapper config-test /path/to/bizarre.cf

and it will use it in place of the one that wrapper provides in the
environment.  Someone really needs to write a comprehensive document
detailing how to do virtual domains, and that person isn't me since I have
<zip> experience in that area.

 - J<

--- config-test.orig    Wed Nov 27 16:41:00 1996
+++ config-test Wed Nov 27 16:41:59 1996
@@ -49,7 +49,7 @@
 print "\n\tNon obvious things that cause headaches:\n\n";
 &header('');
 
-$cf = $ENV{'MAJORDOMO_CF'};
+$cf = $ARGV[0] || $ENV{'MAJORDOMO_CF'};
 
 if (require $cf) { 
     &good("\"require\"d $cf okay.");    



Follow-Ups:
References:
Indexed By Date Previous: Re: config-test
From: Brock Rozen <brozen@webdreams.com>
Next: Re: Can't get Majordomo to unsubscribe
From: Thomas Gramstad <thomasg@ifi.uio.no>
Indexed By Thread Previous: Re: config-test
From: Brock Rozen <brozen@webdreams.com>
Next: Re: config-test
From: Brock Rozen <brozen@webdreams.com>

Google
 
Search Internet Search www.greatcircle.com