I have been trying to get a program I have written working on a Linux based cluster computer at my university. We have set up the JRE on the cluster and have confirmed that it works. However when I try to use my script to ssh into several nodes and run the
java command it never works, all it returns is:
bash: java: command not found
This is my script:
#!/bin/bash
#!/bin/usr/java/j2re1.4.2_05/bin/java
thread=0
for node in 15 16 17 18 19; do
ssh compute-0-${node} java -jar -Xmx750m SimPLNode.jar parameters.dat /rack0/node-${node}/results-${node}.res /rack0/node-${node}/status-${node}.sts /rack0/node-${node}/error-${node}.log 20000 ${thread} ${thread}+1
thread=${thread}+2
done
Hope someone can help, Thanks
Andr�.