/
akolonin
/
aigents-java
Обзор
Документация
Войти
/
akolonin
/
aigents-java
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test.sh
35 строк
1 KB
Anton Kolonin
2.9.9 Free Chat with NL/AL smart conversational modality
24 июл 2020, 16:32
24 июл 2020, 16:32
1cc30da
Код
Авторство
О чём код?
#!/bin/bash # Pre-requisite: # 1. Make sure the current folder contains Aigents.jar built # 2. Make sure the current folder contains the following lexicon files (may be downloaded from http://aigents.com/download/latest/) # lexicon_english.txt # lexicon_russian.txt # 3. Serve Web server at domain localtest.com: # 3.1. Edit hosts file, adding the line with "127.0.0.1 localtest.com" # Mac: /private/etc/hosts # Linux: /etc/hosts # Windows: c:\WINDOWS\system32\drivers\etc\hosts # 3.2. Go to folder "html" under this folder # 3.3. Start Web server # Python 2: # sudo python -m SimpleHTTPServer 80 # Python 3: # sudo python -m http.server 80 # Test run: # Cleanup data rm -rf *log.txt www is-instances is-text test*.txt # Run Aigents Server java -Dsun.zip.disableMemoryMapping=true -cp Aigents.jar:lib/* net.webstructor.agent.Farm store path "''", cookie domain localtest.com, console off & sleep 5 echo Aigents server started. # Run Tests php -d include_path=./php/agent/ -f ./php/agent/agent_test.php # Kill Aigents server kill -9 $(ps -A -o pid,args | grep java | grep 'net.webstructor.agent.Farm' | awk '{print $1}')