Hi, thanks for the reply.
[root@openge bin]# head mailmanctl
#! /usr/bin/python
[root@openge bin]# which python
/usr/bin/python
[root@openge bin]# /usr/bin/python
Python 2.4.3 (#1, Jun 11 2009, 14:09:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import grp
>>> print '%r' grp.getgrall()
File "<stdin>", line 1
print '%r' grp.getgrall()
^
SyntaxError: invalid syntax
>>>
I know very little about advanced python. I've only done some basic
scripting using lists. Do you think I'm getting that error when mailmanctl
is being run by root?
Thanks!
Chris
On Tue, Sep 25, 2012 at 2:37 AM, Mark Sapiro <[email protected]> wrote:
> Lummoxx wrote:
>
> >...hangs on the line
> >groups = [x[2] for x in grp.getgrall() if mm_cfg.MAILMAN_USER in x[3]]
>
>
> It appears that the Python library function grp.getgrall() is hanging
> or looping.
>
> What happens if as root you invoke the Python command in the shebang
> line of bin/mailmanctl and then do
>
> >>> import grp
> >>> print '%r' grp.getgrall()
>
> --
> 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://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org