Non-interactive swiprolog queries from the shell
Antonios Antoniadis <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone, I started building the left hemisphere of my robot's brain with swi-prolog and I'm stuck on probably a very basic thing as I haven't touched prolog since uni. I want to execute/pass/pipe/whatever queries into swi-prolog from the GNU/Linux shell and save/use the results. I can run any shell command via the shell itself or python but do you have any ideas on how/what should I run (syntax) to e.g. have swi-prolog use a specific file with my stored rules or whatever (complied I guess) and pass the query like an argument or input? Actually, is this possible at all? So, non-interactive queries from the command line is what I'm looking for here. I hope I didn't confuse you! Thank you, Antonios A.