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

Boris Vassilev <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAFw8os+6eoTUy-T9xM4_F4Zb2AO0xgeBBOjmc-XFC+jTgUeKyQ@mail.gmail.com>
You can make your program a script (
http://www.swi-prolog.org/pldoc/man?section=compilation), if you haven't
yet, and simply write to standard output (stream alias `user_output`,
http://www.swi-prolog.org/pldoc/man?section=io, works for any write
predicate that takes a stream as an argument)? Or maybe I am
misunderstanding the question?

Best,
Boris




On Mon, Oct 28, 2013 at 3:46 PM, db <
[email protected]> 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].**de <[email protected]>
> https://lists.iai.uni-bonn.de/**mailman/listinfo.cgi/swi-**prolog<https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog>
>



-- 
Boris Vassilev
+358 9 191 25266
Intracellular Cholesterol Trafficking Lab
Institute of Biomedicine, Anatomy
P.O. Box 63 (Haartmaninkatu 8)
FI-00014 University of Helsinki, Finland
-------------- next part --------------
HTML attachment scrubbed and removed
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.