Re: [Mailman-Users] subscribers counter
On Friday 15 February 2002 08:55 am, Daniel Zeiss wrote: > Hello, > > I would like to put a counter on a website with how many people are > actually subscribed to one mailinglist using mailman. > > How is that possible? > > bye > Daniel Setup a cron job to dump out the member list and then count it and dump it to a file: ~mailman/bin/list_members |wc -l > filename The script can also easily build a web page with the information Good Luck! Jon Carnes -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] subscribers counter
On Fri, 2002-02-15 at 15:03, Matthew Thompson wrote: > Have you considered a little php script that runs under cron and reads in > the number of lines in your members file. It could be written to output > the number of lines to a small text file that could be read back in. Nice idea, but Mailman has no members file or analog of it - everything is in config.db (for Mailman 2.0.x - Mailman 2.1 is different). Nigel. -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] subscribers counter
Hi, > > > > "IOError: [Errno 13] Permission denied: > > '/usr/local/mailman/lists/medizin/config.db'" > > Have you considered a little php script that runs under cron and reads in > the number of lines in your members file. It could be written to output > the number of lines to a small text file that could be read back in. Yes, I have, .. ...but I can not run the mailman programs because I have no root account. And it seems that my mailman password is not good enough to give it as parameter to the programs to open the db. I just can edit my lists from the webinterface. So I was wondering if there is some sort of webfunction from mailman that I could include into my webpages. The problem with cron is also, that I would have to run it every 10 minutes to have a more or less actual number but this drains ressources my ISP is perhaps not willing to give me. On the otherhand, if it is something which is just called when the webpages are visited it is less ressources. (based on a low traffic website) bye Daniel -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] subscribers counter
On Friday, February 15, 2002, at 02:54 PM, Daniel Zeiss wrote: > Hi, > >> You can do: >> ~mailman/bin/list_members $LISTNAME > $WEBDIR/subscriber-count.txt >> in your crontab, and include the subscriber-count.txt file in your > > No, that wont work. > > "IOError: [Errno 13] Permission denied: > '/usr/local/mailman/lists/medizin/config.db'" Have you considered a little php script that runs under cron and reads in the number of lines in your members file. It could be written to output the number of lines to a small text file that could be read back in. www.php.net has all the code snippets for reading files - it's quite easy. M@t :o) -- Matthew Thompson - actuality consulting ltd. [EMAIL PROTECTED] -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] subscribers counter
Hi, > You can do: > ~mailman/bin/list_members $LISTNAME > $WEBDIR/subscriber-count.txt > in your crontab, and include the subscriber-count.txt file in your No, that wont work. "IOError: [Errno 13] Permission denied: '/usr/local/mailman/lists/medizin/config.db'" because I am not root at the machine. (ISP) Also this would give me the actual list of subscribers, I just wont the number, something like: 1092 people subscribed where 1092 is the actual number of subscribers. bye Daniel -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
Re: [Mailman-Users] subscribers counter
begin Daniel Zeiss quotation of Fri, Feb 15, 2002 at 02:55:49PM +0100: > I would like to put a counter on a website with how many people are actually > subscribed to one mailinglist using mailman. You can do: ~mailman/bin/list_members $LISTNAME > $WEBDIR/subscriber-count.txt in your crontab, and include the subscriber-count.txt file in your page with a server-side include. (substute your list name and web site directory for $LISTNAME and $WEBDIR) -- Don Marti http://zgp.org/~dmarti Join the Distributed Unisys Google Experiment. [EMAIL PROTECTED] http://burnallgifs.org/";>Unisys KG6INA everywhere. -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users
[Mailman-Users] subscribers counter
Hello, I would like to put a counter on a website with how many people are actually subscribed to one mailinglist using mailman. How is that possible? bye Daniel -- Mailman-Users maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users