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]> |
Hi Dominique, prolog_flag(argv,Argv) gives you the command-line arguments. Note that the exact behavior of this flag changes in SWI-Prolog 6.5.2, see: https://lists.iai.uni-bonn.de/pipermail/swi-prolog/2013/011228.html Best, Kilian On 28-10-13 14:46, db wrote: > Hello, > > (I am using swi-prolog 64 bits 6.5.1 under ubuntu 12.04) > > I call a swi-prolog program from a bash shell. > This program computes values that I would like to > get from the shell. > How can I do this ? > (presently I use a file to write, but I think there is > a simpler way). > > Thanks a lot for your answers. > > Dominique. > _______________________________________________ > SWI-Prolog mailing list > [email protected] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog -- http://kilian.evang.name/