(08-12-2021 02:44 PM)zhihao Wrote: [ -> ] (06-03-2021 06:33 PM)lingu Wrote: [ -> ] (05-22-2021 01:28 PM)lingu Wrote: [ -> ] (05-22-2021 11:22 AM)zhihao Wrote: [ -> ]update headopst:
BIBO use port 22,80,62818
How to make this info easy to find and use?
?
record in U info is better.
Such port use info should be in M info. Do users need to know those ports?
(09-24-2020 01:05 PM)zhihao Wrote: [ -> ]simpleserv.sh
Code:
监听62818端口,执行$bibo_base/talk2thinker.sh
update logic to
---
reqno: request number
bibo_server_port: port used by bibo
Code:
while true {
if ($reqno==0){
sage_clear
}
lsof -i :$bibo_server_port
rr= $?
if ($rr == 0) // port being used
echo "port $bibo_server_port is already in use, exit"
exit 9
}
listen port $bibo_server_port
rr = run talk2thinker.sh
if ($rr != 0){
reqno=7
}
if ( $reqno > 6 ){
flog " recycling at reqno $reqno"
reqno=0
}
else {
reqno=$reqno+1
}
}
---
RR lingu
(09-24-2020 01:05 PM)zhihao Wrote: [ -> ]insert_case()
Code:
insert_case() {
create a new directory $newdir, set its name as $casecnt + 1
copy $newcasepfn to $newdir
It's copied as a file named content.
We also increment casecnt
After that, we run 'auntie up --here=$newdir $casecnt
Quote: generate insert success response
}
[/code]
i'll update the headpost.