Annotation of OpenXM/src/kan96xx/Doc/httpd-rpc.sh, Revision 1.5
1.1 takayama 1: #! /bin/sh
1.5 ! takayama 2: # $OpenXM: OpenXM/src/kan96xx/Doc/httpd-rpc.sh,v 1.4 2002/10/30 13:23:06 takayama Exp $
! 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.
! 15: #ASIR_CONFIG=${OpenXM_HOME}/rc/asirrc
! 16: #export ASIR_CONFIG
! 17: #
! 18: # Set your own httpd-rpc file if necessary.
! 19: OXWEB_HTTPD_RPC=httpd-rpc.sm1
! 20: export OXWEB_HTTPD_RPC
! 21: #
! 22: #
! 23: #LOGFILE=httpd-rpc-${OXWEB_PORT}.log
! 24: LOGFILE=/dev/tty
1.1 takayama 25: export LOGFILE
26: OXWEB_POST=1
27: export OXWEB_POST
1.4 takayama 28: OXWEB_TAKE_LOG=1
29: export OXWEB_TAKE_LOG
1.5 ! takayama 30: #
1.1 takayama 31: touch $LOGFILE
1.3 takayama 32: # tail -f $LOGFILE &
1.5 ! takayama 33: #
! 34: #
! 35: # Main loop
1.1 takayama 36: while true ; \
37: do \
1.2 takayama 38: date >>$LOGFILE ;
1.5 ! takayama 39: sm1 -s "[(parse) (${OXWEB_HTTPD_RPC}) pushfile] extension ; httpd ; quit " >> $LOGFILE 2>&1 ;
1.1 takayama 40: sleep 3 ; \
41: done
42:
43:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>