Annotation of OpenXM/src/asir-port/cgi/cgi-asir-r-markov.sh, Revision 1.3
1.1 takayama 1: #!/bin/bash
1.3 ! takayama 2: # $OpenXM: OpenXM/src/asir-port/cgi/cgi-asir-r-markov.sh,v 1.2 2013/02/18 23:33:13 takayama Exp $
1.1 takayama 3: ## Replace $OpenXM_HOME by an absolute path of your cite.
4: source $OpenXM_HOME/rc/dot.bashrc
5: #source /home/taka/OpenXM/rc/dot.bashrc
6: export TMP=/tmp
7: export CGI_ASIR_ALLOW="[(version) (asir_contrib_copyright) (r_markov)]"
8: export CGI_ASIR_TLIMIT="3600"
9: export OX_ASIR_LOAD_FILE=$OpenXM_HOME/src/asir-port/cgi/r-markov.rr
1.2 takayama 10: export CGI_ASIR_MSG="<pre>
11: Example. r_markov([[1,1,1,1],[0,1,2,3]])
12: </pre><br>"
1.3 ! takayama 13: WFILE=/tmp/tmp-post-$$.txt
! 14: tee /tmp/t.txt | oxdecode_post >${WFILE}
! 15: env CONTENT_LENGTH=`wc -m ${WFILE} | awk '{print $1}'` sm1 -q -s "[(parse) (cgiasir.sm1) pushfile] extension oxNoX cgiAsir quit " <${WFILE}
! 16: rm -f ${WFILE}
! 17: exit 0
1.1 takayama 18:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>