Barry Finkel wrote: > [...] > > #!/bin/csh > foreach list (`ls /var/lib/mailman/lists`) > /usr/lib/mailman/bin/list_members -o $destdir/$list $list > end > >I also do not have a check in this script. I am using > > foreach list (`ls /var/lib/mailman/lists`) > >and not > > Utils.list_lists()) > >to get a list of lists. I assume that the Utils.list_lists()) code >has the check that I do not have in "foreach list".
Thanks for the info. It appears I erroneously assumed from the 08:00:03 timestamp in your OP that it was cron/checkdbs, but it now seems it is all from your scripts which do not check that the names in `ls /var/lib/mailman/lists` are all valid lists. If you would use `/usr/lib/mailman/bin/list_lists -b` instead of `ls /var/lib/mailman/lists`, you would avoid this problem. Your code is OK as long as all the names in `ls /var/lib/mailman/lists` are in fact lists, but it fails when this isn't true. And yes, the Utils.list_lists() function only returns the names of directories that contain a config.pck or config.db file. So, bottom line, use `bin/list_lists -b` instead of `ls lists` to get the list names, and you won't need to worry about whether or not a name is a list. -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list [email protected] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp
