[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pass parameters to the binary file

From: Paulo Moura
Subject: Re: Pass parameters to the binary file
Date: Sun, 22 Jul 2018 10:39:14 +0100

Hi Mario,

See the argument_list/1 built-in predicate:


On 21 Jul 2018, at 23:41, Mario Alejandro Leiva <address@hidden> wrote:

Good Morning:

I wanted to know if it is possible to send parameters when executing a binary compiled in linux. This is because my executable needs to take the facts from a program that the user enters.

In summary, what I want to know is whether it is possible to compile a pl file and be able to pass a parameter to the resulting executable file. For example, if my executable is ' test ', I can run it by passing it a text file of the form: % test 'textfile'. In this way I intend that the executable take that file and perform a consult(' textfile ').

Thank you very much for the information, as you will know, I am new using the compiler.


Mario A. Leiva

Users-prolog mailing list

Paulo Moura
Logtalk developer

reply via email to

[Prev in Thread] Current Thread [Next in Thread]