When running:
netlogo-headless.sh --model abc.nlogo --experiment experiment --table -
on an SSH instance on Google cloud, I get the error: -bash:netlogo-headless.sh: command not found
When runnning the above prefixed by 'sh', I get the following errors:
netlogo-headless.sh: 3: netlogo-headless.sh: Bad subsitution
netlogo-headless.sh: 5: netlogo-headless.sh: [[: not found
netlogo-headless.sh: 14: netlogo-headless.sh: Syntax error: "(" unexpected
I have not made any changes to the netlogo-headless.sh file. I have set JAVA_HOME in .profile and .bashrc . However, JAVA_HOME and PATH still do not point to the jdk installation directory. Any ideas if this is the problem and/or there some other environment variables I should be setting?
The command runs fine when I run it from Google Shell.