[BACK]Return to httpd-rpc.sh CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / Doc

Annotation of OpenXM/src/kan96xx/Doc/httpd-rpc.sh, Revision 1.7

1.1       takayama    1: #! /bin/sh
1.7     ! takayama    2: # $OpenXM: OpenXM/src/kan96xx/Doc/httpd-rpc.sh,v 1.6 2002/11/04 05:40:40 takayama Exp $
1.5       takayama    3: # OpenXM/rc/dot.bashrc must be read before execution of this script.
                      4: # source ${OpenXM_HOME}/rc/dot.bashrc
                      5: #
                      6: # Output verbose messages
                      7: # OXWEB_DEBUG=1
                      8: # export OXWEB_DEBUG
                      9: #
                     10: # Port number for the httpd service
                     11: OXWEB_PORT=8090
                     12: export OXWEB_PORT
                     13: #
                     14: # asirrc is executed when risa/asir starts. Override it if necessary.
1.6       takayama   15: # You can also define your own command in this file.
                     16: #ASIR_CONFIG=httpd-rpc-asirrc.rr
1.5       takayama   17: #ASIR_CONFIG=${OpenXM_HOME}/rc/asirrc
                     18: #export ASIR_CONFIG
                     19: #
                     20: # Set your own httpd-rpc file if necessary.
1.6       takayama   21: # OXWEB_HTTPD_RPC=httpd-rpc-${OXWEB_PORT}.sm1
1.5       takayama   22: OXWEB_HTTPD_RPC=httpd-rpc.sm1
                     23: export OXWEB_HTTPD_RPC
1.7     ! takayama   24: #
        !            25: # If OXWEB_HTTPD_ROOT is set, file transfer will be allowed.
        !            26: #   Example:  export OXWEB_HTTPD_ROOT=/usr/local/www/data/
        !            27: #   Do not forget the last /
        !            28: # Set
        !            29: #
        !            30: # OXWEB_HTTPD_ROOT=/usr/local/www/data
        !            31: # export OXWEB_HTTPD_ROOT
1.5       takayama   32: #
                     33: #
                     34: #LOGFILE=httpd-rpc-${OXWEB_PORT}.log
                     35: LOGFILE=/dev/tty
1.1       takayama   36: export LOGFILE
                     37: OXWEB_POST=1
                     38: export OXWEB_POST
1.4       takayama   39: OXWEB_TAKE_LOG=1
                     40: export OXWEB_TAKE_LOG
1.5       takayama   41: #
1.1       takayama   42: touch $LOGFILE
1.3       takayama   43: # tail -f $LOGFILE &
1.5       takayama   44: #
                     45: #
                     46: #  Main loop
1.1       takayama   47: while true ; \
                     48: do \
1.2       takayama   49:   date >>$LOGFILE ;
1.5       takayama   50:   sm1 -s "[(parse) (${OXWEB_HTTPD_RPC}) pushfile] extension ; httpd ; quit " >> $LOGFILE 2>&1 ;
1.1       takayama   51:   sleep 3 ; \
                     52: done
                     53:
                     54:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>