batch mode in windows

Post Reply
evan

batch mode in windows

Post by evan »

Basically, I want to batch up runs that look like:
neuron -c parm=1 run.hoc
neuron -c parm=2 run.hoc
etc

The runs are generated by a script, and the whole thing runs under bash provided by cygwin.

I'm having two questions:
1. How do I stop neuron opening the terminal window?
2. How do I stop neuron from disconnecting from the parent process? At the moment when I run the script, neuron opens the terminal window, disconnects from the parent and the script immediately launches the next run. I end up with 30 processes running which windows does not handle gracefully.

It seems that if neuron could use stdin and stdout from parent process, as I understand it does under unix, this would solve my problem.

thanks in advance,
Evan.
ted
Site Admin
Posts: 6302
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: batch mode in windows

Post by ted »

The first trick is to call nrngui or nrniv instead of neuron. The second is to include the hoc statement
quit()
at the end of run.hoc to ensure that it exits when done.
evan

Re: batch mode in windows

Post by evan »

nrniv does the trick.

Just don't use it under 'Console', the windows terminal replacement program, it prevents nrniv from writing to stdout.

thanks Ted!

Evan.
ted
Site Admin
Posts: 6302
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: batch mode in windows

Post by ted »

Yes, in my previous post I forgot to mention the third trick: start NEURON's rxvt, then cd to the directory where your hoc file and shell script are located. _Then_ run the shell script.
Post Reply