简体   繁体   中英

How to execute a .clp made in CLIPS on command line

I developed an expert system using CLIPS and would like to be able to run it on the command line. Is this possible?

My end goal is to have a Java program execute the .clp in CMD and pass the output and input to and from the command line and gui.

Can I run the project in clipsdos? If so how? Sorry for all the questions unofficial CLIPS documentation is sparse :(

Look for CLIPS JNI: http://www.clipsrules.net/?q=Downloads/CLIPSJNI

On github you can find a lot of examples.

Create a file with a series of commands to execute:

(load rules.clp)
(reset)
(run)

You can then use the -f or -f2 option when launching CLIPS to execute the commands:

clips -f commands.bat

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM