I think Amit Jain wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I need to output all the information from a Rete engine produced by
> watch command to a text file instead of the screen. How can i do that.
> thanks
> Amit
> 

First, read the section in the Jess manual about I/O routers:

http://herzberg.ca.sandia.gov/jess/docs/61/library.html#routers

Now: the watch output, by default, goes to the router named WSTDOUT,
as does other output. In Jess 6, you can redirect that router to a
file using the technique discussed in the reference.

In Jess 7, you can define your own router that goes to a file, then
use the Rete.setWatchRouter() method to send just the watch output to
that router. So if you can use Jess 7, then this is your best bet.



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to