Juan Miscaro wrote:
>
>--- Mark Sapiro <[EMAIL PROTECTED]> wrote:
>> 
>> You could use bin/withlist -a with a small script along the lines of
>> 
>> def show_reminders(mlist):
>>     if mlist.send_reminders:
>>         print mlist.real_name
>> 
>> See bin/withlist -h for more information.
>
>
>Thank you but I need more guidance.  I figure that is a python snippet.
> I put a shebang line pointing to my interpreter and ran the following
>command but the thing bombed:
>
>./bin/withlist -a -r identify_reminder_lists.py


Save the above 3-line script as bin/show_reminders.py (or if you'd
rather save it as bin/identify_reminder_lists.py, change the def to

def identify_reminder_lists(mlist):
)

Then run it via

bin/withlist -a -r show_reminders

(note no .py suffix) or run it with

bin/withlist -a -r identify_reminder_lists

if you used that name.

And you do not need a shebang line in the script. bin/withlist has an
appropriate shebang line and it in turn knows what to do with the -r
script.

-- 
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&amp;file=faq01.027.htp

Reply via email to