Hmm. well, beats me. That needs debugging. let me see if I can reproduce it.
Either the string is not being sent (maybe a missing flush on the socket?) or the answer is not being sent. --linas On Sat, Sep 2, 2017 at 4:12 AM, Masayuki Hatta <[email protected]> wrote: > Hi, thanks for suggestion. > > So now, if you hack cogita to send `(+ 2 2)` to the cogserver, you should >> seem something like: >> >> 04:13 (cogita-bot) Entering scheme shell; use ^D or a single . on a line >> by itself to exit. >> 04:13 (cogita-bot) [0;34mguile [1;34m> [0m (+ 2 2) >> 04:13 (cogita-bot) 4 >> 04:13 (cogita-bot) [0;34mguile [1;34m> [0m >> > > I changed go-irc.cc like: > > //strcpy (cmdline, "scm hush\n(process-query \""); > strcpy (cmdline, "scm \n(+ 2 2)\n"); > > Then it gives me the same response on IRC side: > > 17:59 (mhatta) cogita-bot: Hello! > 17:59 (cogita-bot) Entering scheme shell; use ^D or a single . on a line > by itself to exit. > 17:59 (cogita-bot) [0;34mguile [1;34m> [0m > > cogita's output is: > > (snip) > #mhatta-test: <mhatta> cogita-bot: Hello! > input=:cogita-bot: Hello! > nick=mhatta ident=1549 host=www4.inetd.co.jp target=#mhatta-test > Sending to opencog: scm > (+ 2 2) > > opencog reply: Entering scheme shell; use ^D or a single . on a line by > itself to exit. > guile> > > Changing to (display "foobar\n") basically gives the same result. > > From telnet, (+ 2 2) works: > > $ telnet localhost 17004 > Trying ::1... > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > (+ 2 2) > Entering scheme shell; use ^D or a single . on a line by itself to exit. > guile> 4 > guile> > > So, somehow scheme expressions ares not passed to cogserver at all. I got > pretty much stuck. Any hints? > > -- > You received this message because you are subscribed to the Google Groups > "opencog" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/opencog. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/opencog/01f1288a-666f-455f-ba25-3bd42f3bac47%40googlegroups.com > <https://groups.google.com/d/msgid/opencog/01f1288a-666f-455f-ba25-3bd42f3bac47%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *"The problem is not that artificial intelligence will get too smart and take over the world," computer scientist Pedro Domingos writes, "the problem is that it's too stupid and already has." * -- You received this message because you are subscribed to the Google Groups "opencog" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/opencog. To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/CAHrUA34JnqG%3DV1x9YM2Q5Yd1d-AR7sGoU-v4kTMtp9oiuqaWdA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
