BIBO -- O
|
09-23-2020, 07:11 PM
Post: #61
|
|||
|
|||
RE: BIBO
(09-23-2020 06:27 PM)lingu Wrote:(09-23-2020 06:20 PM)zhihao Wrote: 可否实现删除功能后再移动。D info准备移动到 Technology and Beyond (TaB) / Research / D-team / Customers下,但是里面还没有检察院的板块。 |
|||
09-23-2020, 07:29 PM
Post: #62
|
|||
|
|||
RE: BIBO
我在 zhihao@g1b screen procurat内修改了talk2thinker.sh line136为flog " ===============received new case in $newcasepfn",并在screen simpleservn内重启simpleserv服务。
在screen log内查看到talk2thinker.sh对应的日志在simpleserv.log内,但是simpleserv.log内并没有看到“=====”。 |
|||
09-23-2020, 07:31 PM
Post: #63
|
|||
|
|||
RE: BIBO
(09-23-2020 07:05 PM)zhihao Wrote: talk2thinker.sh 中,我加入了 flog "casetype is: $casetype",并重启simpleserv服务 计算机永远是对的,肯定是我们的程序有什么问题。 首先要确定是否你修改的talk2thinker.sh运行了。我查看simpleserv代码ncat语句如下: Code: ncat --listen 62818 --sh-exec /home/lingu/forest/prada/prada/procuratorate/ta\ 你修改的应该不是/home/lingu/forest/prada/prada/procuratorate/talk2thinker.sh 那么就没有运行你修改的代码。此处应该修改路径,把simpleserv和talk2thinker.sh都放到一个类似于$bibo_base的地方去。 要学会看着代码分析和排查。 |
|||
09-23-2020, 08:13 PM
Post: #64
|
|||
|
|||
RE: BIBO
(09-23-2020 07:31 PM)lingu Wrote:(09-23-2020 07:05 PM)zhihao Wrote: talk2thinker.sh 中,我加入了 flog "casetype is: $casetype",并重启simpleserv服务 已将procone.py, simpleserv.sh, talk2thinker.sh, thinkres.py放到$bibo_base: /thinker/globe/soft/bibo 并更新首文 |
|||
09-23-2020, 09:02 PM
Post: #65
|
|||
|
|||
RE: BIBO | |||
09-23-2020, 09:04 PM
Post: #66
|
|||
|
|||
RE: BIBO
tmux session ncat内执行ncat返回404
Code: [zhihao@limbo30-1 processed]$ ( cat chendengchang-with-blank-line.json; sleep 18 ) | ncat trajan.d-thinker.org 20050 |
|||
09-23-2020, 09:22 PM
Post: #67
|
|||
|
|||
RE: BIBO
(09-23-2020 09:04 PM)zhihao Wrote: tmux session ncat内执行ncat返回404 I restarted sage. Code: 1024 ~/sage/bin/sage stop but it hasn't helped. Code: [zhihao@limbo30-1 processed]$ ( cat chendengchang-with-blank-line.json; sleep 18 ) | ncat trajan.d-thinker.org 20050 |
|||
09-23-2020, 09:28 PM
(This post was last modified: 09-23-2020 09:44 PM by lingu.)
Post: #68
|
|||
|
|||
RE: BIBO
(09-23-2020 09:22 PM)lingu Wrote: but it hasn't helped. i tested procone and it has some syntax error. Code: [sage2@g1b-2 ~]$ /thinker/globe/soft/bibo/procone.py --tycano 10 The param should be a string. But os.system is not our preferred way to run a command. We use cmdline. So I changed it to Code: cmdline.runOrExit("rid --insitu tycajson_pfn") After this is fixed, there is another error. Code: [sage2@g1b-2 ~]$ /thinker/globe/soft/bibo/procone.py --tycano 10 Added ':' Next error Code: [sage2@g1b-2 ~]$ /thinker/globe/soft/bibo/procone.py --tycano 10 you need make sure all vars are assigned a value before they are used. I added Code: reqtype = None Now the query request works in tmux session ncat. Code: [zhihao@limbo30-1 processed]$ ( cat chendengchang-with-blank-line.json; sleep 18 ) | ncat trajan.d-thinker.org 20050 delete seems to work as well. Code: [zhihao@limbo30-1 processed]$ ( cat del_zengxingliang.json; sleep 18 ) | ncat trajan.d-thinker.org 20050 I am leaving tmux session ncat. You can proceed to test it and make sure delete works. Then inform the customer to test. |
|||
09-23-2020, 11:14 PM
Post: #69
|
|||
|
|||
RE: BIBO
screen procurat 内执行procone.py解析错误
Code: [sage2@g1b-2 bibo]$ ./procone.py --tycano 15 --reqtype delete --reqcaseid 67be261c9e6311eabceb005056c00001 |
|||
09-23-2020, 11:31 PM
Post: #70
|
|||
|
|||
RE: BIBO
(09-23-2020 11:14 PM)zhihao Wrote: screen procurat 内执行procone.py解析错误 you need study how gnu_getopt works. For programming, you can copy the logic for '--tycano'. |
|||
« 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: