I wonder is there a way that we can fire a rule like "(batch testall.tst)" but without launching the CLIPS executable and typing it to command line? I don't want to run ./clips first and then type command, instead I really want to write it to another file so that I can integrate CLIPS seamlessly.
Probably that could be writing a C file which can pass this command to CLIPS? Is anyone has any idea about that?
Thanks for the help.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi guys,
I wonder is there a way that we can fire a rule like "(batch testall.tst)" but without launching the CLIPS executable and typing it to command line? I don't want to run ./clips first and then type command, instead I really want to write it to another file so that I can integrate CLIPS seamlessly.
Probably that could be writing a C file which can pass this command to CLIPS? Is anyone has any idea about that?
Thanks for the help.
Cheers
Use
clips -f testall.tst
This functionality is described in section 2.1.2 of the Basic Programming Guide, Automated Command Entry and Loading
2.1.2 Automated Command Entry and Loading