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