When I run this from the command line:
Code: Select all
nrniv test.hoc
Code: Select all
nrniv
load_file("test.hoc")
Code: Select all
nrniv -c "load_file(\"test.hoc\")"
Thanks!
Code: Select all
nrniv test.hoc
Code: Select all
nrniv
load_file("test.hoc")
Code: Select all
nrniv -c "load_file(\"test.hoc\")"
This is as it should be. To prevent exit after program execution, change the command line tosl wrote:When I run this from the command line:It runs the .hoc file and exitsCode: Select all
nrniv test.hoc
Code: Select all
nrniv test.hoc -
I doubt that anyone has used nrnoc for a long time, and would not be surprised to discover that it is buggy, under the general principles that "stuff happens" and "software that is rarely used is highly likely to have bugs."nrngui does the same, and nrnoc just plain refuses to work
It shouldn't.did not work either.Code: Select all
nrniv -c "load_file(\"test.hoc\")"
Code: Select all
gksudo gedit /usr/share/mime/packages/freedesktop.org.xml
Code: Select all
<mime-type type="text/x-hoc">
<sub-class-of type="text/plain"/>
<comment>hoc code</comment>
<glob pattern="*.hoc"/>
</mime-type>
Code: Select all
sudo update-mime-database /usr/share/mime
Code: Select all
gksudo gedit /usr/local/bin/nrn
Code: Select all
#!/bin/bash
DIR=`dirname "$1"`
gnome-terminal -e "nrniv $1 - -dll ./x86_64/.libs/libnrnmech.so" --working-directory="$DIR"
Code: Select all
gksudo nautilus /usr/local/bin