Annotation of OpenXM/src/kan96xx/Doc/httpd-rpc.sh, Revision 1.6
1.1 takayama 1: #! /bin/sh
1.6 ! takayama 2: # $OpenXM: OpenXM/src/kan96xx/Doc/httpd-rpc.sh,v 1.5 2002/11/03 12:43:02 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
24: #
25: #
26: #LOGFILE=httpd-rpc-${OXWEB_PORT}.log
27: LOGFILE=/dev/tty
1.1 takayama 28: export LOGFILE
29: OXWEB_POST=1
30: export OXWEB_POST
1.4 takayama 31: OXWEB_TAKE_LOG=1
32: export OXWEB_TAKE_LOG
1.5 takayama 33: #
1.1 takayama 34: touch $LOGFILE
1.3 takayama 35: # tail -f $LOGFILE &
1.5 takayama 36: #
37: #
38: # Main loop
1.1 takayama 39: while true ; \
40: do \
1.2 takayama 41: date >>$LOGFILE ;
1.5 takayama 42: sm1 -s "[(parse) (${OXWEB_HTTPD_RPC}) pushfile] extension ; httpd ; quit " >> $LOGFILE 2>&1 ;
1.1 takayama 43: sleep 3 ; \
44: done
45:
46:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>