Hi, all,

  In my case, test.clp is

   (defrule find-os
      ?ask-stmt <- (ask-os ?hostname)
      (has-os ?hostname ?osname)
    =>
      (retract ?ask-stmt)
      (printout t ?osname crlf))
   (assert (host-os myhost unix))

  in Java application

  Rete rete = ...
  rete.executeCommand("(assert (ask-os myhost))");
  rete.run();

  then Jess will print the result "unix" into
  standard output.
  However I'd like to make the Java application get 
  the result.

  Which way is the smartest one?
  Thanks in advance for the answers to the studpid question.

  

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to