public class HelloRemote
extends Object
In order to run this you need to:
- Install/copy XSB Prolog and interprolog.xwam to the remote machines
- Create an interprolog login in each machine, with permissions to run ssh, and with passphrase configured
Test the above first by running on your machine (the one with the Java app):
ssh interprolog@remotehost 'PathToXSBexecutable'
You should enter an interactive XSB session, without being asked a password.
Look at files named OutputK.txt for each engine K's Prolog output
java -classpath /Users/mc/Dropbox/interprologsvn_unfuddle/interprologForJDK/interPrologStudio.jar com.declarativa.interprolog.examples.HelloRemote
...
Created 6 engines
29796-/Users/interprolog
5012-C:\windows\system32
5724-C:\windows\system32
2367-/home/mc
2520-/home/mc
29862-/Users/mc/Dropbox/XSBInc/Warwick_and_ACES
Now some messages from remote Prologs
Hello from engine 0, client World!
Hello from engine 1, client World!
Hello from engine 2, client World!
Hello from engine 3, client World!
Hello from engine 4, client World!
Hello from engine 5, client World!
Ended javaMessaging
Engines shut down.