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. For more options, visit https://groups.google.com/d/optout.
