[Mailman-Developers] Clean output with bin/withlist??

Ron Jarrell jarrell@vt.edu
Tue, 31 Jul 2001 19:58:05 -0400


At 07:47 PM 7/31/01 -0400, Scott Brown wrote:
>How do I __cleanly__ get the "prefered domain" that is associated with a
>given list?
>
>I'm sure this is possible with the "withlist"... and it's the "host_name"
>attribute I want  (isnt it??) .... which if I understand the docs is a
>member of the "m" collection (is that the right name under Python??)
>
>My question is how do I actually extract that (preferably as a one liner
>without a pile of other output, such that I can pull it into a perl script
>and use it without a lot of additional processing)

Well, the simple answer, that I'm sure Barry will happily espouse, is to 
do your script in python instead, and just read the variable directly :-).

However, the brute force method is just take withlist, and hack it
slightly to just be a dedicated program that just prints the variable
you're looking for.