Re: getting arguments computed by a swi program from a bash shell

Kilian Evang <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 28/10/13 15:40, db wrote:
> I (naively) thought that there was a way to a swi-prolog script
> to return values to the program which called it (here my python script),
> as a function return values (possibly just one)
> to the function which called it.

Ah, I misunderstood your question.

You can write the output of your Prolog script to standard output as
Boris suggested and read the output from the calling program, e.g. see
here how to do this in Python: http://stackoverflow.com/a/2502883

Kilian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.