Re: JESS: works locally not as www

2006-02-06 Thread ejfried
I think Robert Kildare wrote:

> 
> Are there any simple issues that I may have overlooked, like the need for 
> escape characters to describe the file path when calling 
> v = engine.executeCommand("(batch " + inputFileName + ")"); 

It's always best to quote filenames in Jess 6, and if you're using
Jess 7, then this is a requirement. Otherwise /tmp/whatever looks like
a regular expression /tmp/ followed by "whatever". You want to say

v = engine.executeCommand("(batch \"" + inputFileName + "\")"); 

or better, use

v = engine.batch(inputFileName);



-
Ernest Friedman-Hill  
Advanced Software Research  Phone: (925) 294-2154
Sandia National LabsFAX:   (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]




JESS: works locally not as www

2006-02-06 Thread Robert Kildare
Hello
As a newbie, I have created a java app that writes clips to file and
creates a Rete instance to write the output from clips.clp to output.txt. 
It all works exceptionally well locally, on Windows and Solaris with the
input and output landing in the same neighbourhood. Once I ask a web app
to run the program using php's exec( "java -jar BigJar.jar"), the fun
begins. The web app is a typical Apache/PHP/Mysql one, which reads the
output file once it is (theoretically) written to the /tmp directory.
the WWW permissions are set appropriately as the owner of the java
processes, the clp file is written correctly, the output is blank. 

Are there any simple issues that I may have overlooked, like the need for 
escape characters to describe the file path when calling 
v = engine.executeCommand("(batch " + inputFileName + ")"); 

before my schools sys admin goes to the trouble of building a system
entirely for me.. so that he can play with the permissions

thanks
Rob K.



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]