BIBO -- O
|
09-19-2020, 08:29 PM
Post: #11
|
|||
|
|||
RE: BIBO
(09-19-2020 02:53 PM)lingu Wrote: zhihao - it looks like there is no progress in this project. You should document the logic of simpleserv, then propose a change for the insert function. simpleserv.sh 监听62818端口,执行talk2thinker.sh talk2thinker.sh 读取一个案例请求,保存到$toneroot/newreeq文件,执行tellThinker, getresults函数 tellThinker() 将"@$spc (-1 -1 -1 -1 -1 -1) > (0 $reqno $j) $toneroot/procone.py --tycano $j"写入$toneroot/manytasks.ts作为sage执行的任务。 procone.py 在某一案例内容中搜索key{1,2,3},构建"keys": []。 getresults() 执行thinkres.py,返回procone.py查询到的结果,构建返回的json。 |
|||
09-20-2020, 01:45 AM
Post: #12
|
|||
|
|||
RE: BIBO
(09-19-2020 08:29 PM)zhihao Wrote:(09-19-2020 02:53 PM)lingu Wrote: zhihao - it looks like there is no progress in this project. You should document the logic of simpleserv, then propose a change for the insert function. 我想在talk2thinker.sh的 flog_enable_timestamp=True flog " received new case in $newcasepfn" 下面加上以下代码,把接收到的案例信息存放到文件夹名最大的目录内 Code: ... RR lingu |
|||
09-22-2020, 01:30 PM
Post: #13
|
|||
|
|||
RE: BIBO
g1b上开通trajan:20050到localhost:62818的通道。启动服务时提示coolauntie: command not found
Code: [zhihao@g1b-2 procuratorate]$ sudo bash simpleserv.sh simpleserv服务已启动 Code: [zhihao@g1b-2 procuratorate]$ ps aux | grep "simpleserv" 尝试ncat,长时间无任何输出 Code: [root@limbo30-1 processed]# ( cat chendengchang-with-blank-line.json; sleep 18 ) | ncat trajan.d-thinker.org 20050 |
|||
09-22-2020, 01:37 PM
Post: #14
|
|||
|
|||
RE: BIBO
(09-19-2020 08:29 PM)zhihao Wrote:(09-19-2020 02:53 PM)lingu Wrote: zhihao - it looks like there is no progress in this project. You should document the logic of simpleserv, then propose a change for the insert function. Why do you just write it here without generating any results? Ask for review, then update the headpost. Use [ code ] to wrap pseudocode. |
|||
09-22-2020, 01:40 PM
(This post was last modified: 09-22-2020 01:43 PM by lingu.)
Post: #15
|
|||
|
|||
RE: BIBO
(09-20-2020 01:45 AM)zhihao Wrote:(09-19-2020 08:29 PM)zhihao Wrote:(09-19-2020 02:53 PM)lingu Wrote: zhihao - it looks like there is no progress in this project. You should document the logic of simpleserv, then propose a change for the insert function. Dont specify the location like this. Reply the existing pseudocode, and specify what you want to do. Quote:加上以下代码,把接收到的案例信息存放到文件夹名最大的目录内 OK. Quote: echo -e "{\n\ i dont know whether it is a good idea to generate the response here. But it is okay to design like this now and we can improve later. Quote:RR lingu OK. But don't write code. Write pseudocode. Don't you know this rule? |
|||
09-22-2020, 01:45 PM
(This post was last modified: 09-22-2020 01:55 PM by lingu.)
Post: #16
|
|||
|
|||
RE: BIBO
(09-22-2020 01:30 PM)zhihao Wrote: g1b上开通trajan:20050到localhost:62818的通道。启动服务时提示coolauntie: command not found what's in simpleserv's log? |
|||
09-22-2020, 01:52 PM
Post: #17
|
|||
|
|||
RE: BIBO
(09-22-2020 01:45 PM)lingu Wrote:(09-22-2020 01:30 PM)zhihao Wrote: g1b上开通trajan:20050到localhost:62818的通道。启动服务时提示coolauntie: command not found simpleserv.log内容如下 Code: [zhihao@g1b-2 zhihao]$ pwd simpleserv.log为前两天生成的文件 Code: [zhihao@g1b-2 zhihao]$ ll |
|||
09-22-2020, 02:35 PM
(This post was last modified: 09-22-2020 02:37 PM by lingu.)
Post: #18
|
|||
|
|||
RE: BIBO
(09-22-2020 01:30 PM)zhihao Wrote: g1b上开通trajan:20050到localhost:62818的通道。启动服务时提示coolauntie: command not found why sudo? Quote:Quote:Quote:/home/sage2/sage/bin/sage_clear: line 34: coolauntie: command not found It is a problem. Then you should debug it. Quote: With sudo, the user becomes root, and you should look into root's log dir. Code: 13:32:55 lingu@g1b-2:/thinker/local/today/users/root> ll simpleserv.log |
|||
09-22-2020, 02:40 PM
Post: #19
|
|||
|
|||
RE: BIBO
(09-22-2020 02:35 PM)lingu Wrote: With sudo, the user becomes root, and you should look into root's log dir. 是的,simpleserv.sh有新的日志,而talk2thinker.sh为前两天,说明simpleserv内代码出问题了。 Code: [zhihao@g1b-2 root]$ pwd 通过日志定位到simpleserv.sh的该行代码‘ sage_user=sage2 /home/sage2/sage/bin/sage_clear‘过不去。 Code: [zhihao@g1b-2 root]$ tail simpleserv.log simpleserv.sh Code: while true; do 查询sage日志,看到“.ts”缺少文件名。 Code: [zhihao@g1b-2 root]$ pwd Code: [zhihao@g1b-2 root]$ pwd simpleserve.sh内提及的sage_clear程序使用了coolauntie。判断是coolauntie命令没有往下执行,目前找到该命令的路径为 /thinker/bin/coolauntie。 Code: [zhihao@g1b-2 bin]$ cat /home/sage2/sage/bin/sage_clear coolauntie代码内有flog相关代码,但是对应的coolauntie.log没有生成,说明命令没有执行,但是coolauntie确实位于$PATH路径内,不明白为什么不能执行 Code: [zhihao@g1b-2 bin]$ pwd Code: [zhihao@g1b-2 root]$ pwd |
|||
09-22-2020, 03:01 PM
Post: #20
|
|||
|
|||
RE: BIBO
(09-22-2020 02:35 PM)lingu Wrote:(09-22-2020 01:30 PM)zhihao Wrote: g1b上开通trajan:20050到localhost:62818的通道。启动服务时提示coolauntie: command not found 因为不用sudo的话会提示类似 “/thinker/storage/udata/lingu/testy/procuratorate/tests/typical/” permission deny的问题,但是现在无法复现。使用bash simpleserv.sh一样会卡住 Code: [zhihao@g1b-2 procuratorate]$ bash simpleserv.sh Code: [zhihao@limbo30-1 processed]$ pwd |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: