I am having currently a trouble in opening NEURON together with arguments in a new terminal.
For example I want to tell NEURON to open without banner and to run a hoc file called "test.hoc".
I tried
Code: Select all
open -a terminal nrniv -nobanner test.hoc
Another hack I did was to make a temporary shell script and start it:
Code: Select all
echo "cd NEURONPATH; nrniv -nobanner HOCPATH/test.hoc" > tmp.sh; chmod +x tmp.sh; open -a terminal tmp.sh; rm tmp.sh
Any ideas what could help?
You might ask why I want to do this. Actually I want to start NEURON from Matlab together with arguments. This works perfectly on Windows with the system call but does not work on Mac because no terminal is opened (only the nrngui menu bar is visible).
PS: If someone knows how this works on Linux, I would also be interested in knowing ;-)
Thanks alot!