At 17:34 17/06/2003, Tobias Eigen wrote:
Hi,

While we're on the subject of PRIVATE_EXTERNAL_ARCHIVER - has anyone
successfully set it up to have two commands executed to generate two external
archives at the same time? I want to continue using mhonarc while also testing
another system (FUD Forum).


I realize this is probably a trivial question for some of you, but I've been
digging around quite a bit in Google and haven't found the answer. My latest
attempt is:

PRIVATE_EXTERNAL_ARCHIVER = '(/usr/bin/mhonarc -add -outdir
/usr/local/mailman/archives/private/%(listname)s -rcfile
/usr/local/mailman/archives/private/mhonarc.rc -htmlext html -idxfname
index.html -title %(listname)s -reverse
-spammode ; /usr/local/mailman/scripts/maillist.php
%(listname)[EMAIL PROTECTED])'

.. which runs the first one (mhonarc) correctly as usual and does also runs the
second one (maillist.php). However, the second one does not seem to be passed
the message at all.


I've tried a range of things based on the above - no luck. Any advice is
appreciated.

Try making the first part of the command 'cat > /tmp/teststuff$$;' to insert the msg into a temporary file. Have the two subsequent command parts executing the archivers and taking their STDIN from the temporary file. Make the last part of the command 'rm /tmp/teststuff$$' to tidy up.


Something like this might work:

PRIVATE_EXTERNAL_ARCHIVER = 'cat > /tmp/teststuff$$; archiver-1-command %(listname)s-stuff < /tmp/teststuff$$; archiver-2-command %(listname)s-stuff < /tmp/teststuff$$; rm /tmp/teststuff$$'

I think the temporary files are safe but caveat emptor ...


Cheers,

Tobias

--
Tobias Eigen
Executive Director

Kabissa - Space for change in Africa
http://www.kabissa.org

TIME TO GET ONLINE
Internet Learning materials now online!
Go: http://www.ttgo.kabissa.org
Contact: [EMAIL PROTECTED]


------------------------------------------------------ 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/r.barrett%40openinfo.co.uk

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