Re: getting arguments computed by a swi program from a bash shell
db <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Ok thanks a lot. Dominique Le 28/10/2013 17:07, Kilian Evang a écrit : > 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 > _______________________________________________ > SWI-Prolog mailing list > [email protected] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog > > !DSPAM:152,526e8c2a296583370413072! >