Open NEURON in a new terminal together with arguments
Posted: Sat May 13, 2017 5:49 pm
Hello there,
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
but this is not working because the arguments are not given to nrniv but to the terminal (also --args does not work).
Another hack I did was to make a temporary shell script and start it:
This actually starts NEURON in a new terminal and runs it, however it closes at the moment the simulation run is over because shell scripts are instantly closed after execution.
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!
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!