Re: Pass parameters to the binary file
Paulo Moura <[email protected]> Sun, 22 Jul 2018 10:39:14 +0100
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Mario, See the argument_list/1 built-in predicate: http://www.gprolog.org/manual/gprolog.html#argument-list%2F1 Cheers, Paulo > On 21 Jul 2018, at 23:41, Mario Alejandro Leiva <[email protected]> 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. > > Greetings. > > -- > Mario A. Leiva > > > _______________________________________________ > Users-prolog mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/users-prolog ----------------------------------------------------------------- Paulo Moura Logtalk developer _______________________________________________ Users-prolog mailing list [email protected] https://lists.gnu.org/mailman/listinfo/users-prolog