At 23:09 15/06/2003, Jonas Meurer wrote:
hello, i have in my mm_cfg.py:
PUBLIC_EXTERNAL_ARCHIVER = lurker-index -l `lurker-list -c /etc/lurker/lurker.conf | grep -B2 "^%(listname)s$"|head -n1` -m


is some thing wrong with this syntax? mailman doesn't restart:

The problem is that in mm_cfg.py you are assigning a value to a Python string variable.


You need to either wrap the whole thing in single or double quotes and escape any occurrences of the quote type you choose in the body of the string.

In your cae single quotes look to be the best choice, for instance:

PUBLIC_EXTERNAL_ARCHIVER = 'lurker-index -l `lurker-list -c /etc/lurker/lurker.conf | grep -B2 "^%(listname)s$"|head -n1` -m'

Whether the resulting command makes any sense is up to you.

Restarting mailman queue runner: mailmanTraceback (most recent call
last):
  File "/usr/lib/mailman/bin/mailmanctl", line 105, in ?
    from Mailman import mm_cfg
  File "/var/lib/mailman/Mailman/mm_cfg.py", line 73
    PUBLIC_EXTERNAL_ARCHIVER = lurker-index -l `lurker-list -c
/etc/lurker/lurker.conf | grep -B2 "^%(listname)s$"|head -n1` -m
                                               ^
SyntaxError: invalid syntax

bye
 mejo

--

------------------------------------------------------------------------------ Richard Barrett http://www.openinfo.co.uk


------------------------------------------------------ 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/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to