mhonarc-users

web admin interface

1999-12-16 12:17:47
Hi,

Like many people, I have been trying to develop a web admin 
interface for my users forum administrators.

From searching the MHonArc archive most people seem to be
adding or removing messages directly from the live HTML.

I am trying a different approach whereby I edit the actual
mailboxes.  My problem is I can't call my rebuild script
from within a CGI script.

the CGI code is as follows:
        # rebuild MHonArc
        $ENV{PATH}='';
        system("/data/www/bin/mkarchive");

The 'mkarchive' shell script is as follows:
        #!/bin/sh
        PATH=$PATH:/opt/mhonarc/bin
        
        # devpt forum dir
        FORUMDIR=/data/www/devpt/docs/forum
        
        # Remove public forum
        /usr/bin/rm $FORUMDIR/msg*.html
        /usr/bin/rm $FORUMDIR/thread*.html
        /usr/bin/rm $FORUMDIR/date.html
        /usr/bin/rm $FORUMDIR/.mhonarc.db
        
        # Create devpt forum
        mhonarc -rcfile $HOME/../devpt/mhonarc/mh_forumrc -nodoc -outdir 
$FORUMDIR $HOME
        /mail/mh_forum_live
        

The 'mkarchive' script does get called as the forum gets
deleted. The problem lies when calling mhonarc.

TIA


-- 
Andrew McGregor, NISS, PO BOX 2674, BATH, BA2 7XY.
T: 01225 826 826 ext. 4717; F: 01225 826 177; E: am(_at_)niss(_dot_)ac(_dot_)uk

<Prev in Thread] Current Thread [Next in Thread>