dke-questions > RE: Problems running in batch mode on linux
Oct 15, 2018  01:10 PM | Live Eikenes
RE: Problems running in batch mode on linux
Hi Corinne,

I am not running this on mac, but on linux.

And I can run one and one job in the terminalwindow by writing:

./dke /home/eikeliv/Documents/MILD_TBI_DKE/d1_1001/d1_1001.dat

But when I try to run it in a .sh script like the one below, and in a loop for all the individuals in my study, I cannot make it to work. 

Any other suggestions?

Best,
Live

Originally posted by Corinne McGill:
Hi Live,

Concerning the line that runs DKE, on a Mac you need to use the following format:

./run_dke.sh

not "./dke /home/eikeliv/Documents/MILD_TBI_DKE/test_loop_dke/${ID}/${ID}.dat".

Hope this helps!
Corinne

Originally posted by Live Eikenes:
Dear Emilie

Thanks for your suggestion. I tried the following:

#!/bin/bash
export ID_file=id_mTBI.txt
SUBJ_IDs=$(cat $ID_file)
for ID in $SUBJ_IDs ; do
./dke /home/eikeliv/Documents/MILD_TBI_DKE/test_loop_dke/${ID}/${ID}.dat
done

But got the following error message:

eikeliv@ntnu14028:~/dke$ ./runDKE_mTBI_test.sh
bash: ./runDKE_mTBI_test.sh: /bin/bash^M: bad interpreter: No such file or directory

But I cannot figure out what is wrong.

Best,
Live

Threaded View

TitleAuthorDate
Live Eikenes Oct 3, 2018
Live Eikenes Oct 15, 2018
Corinne McGill Oct 15, 2018
RE: Problems running in batch mode on linux
Live Eikenes Oct 15, 2018
David Lewis Oct 15, 2018
Emilie McKinnon Oct 12, 2018
David Lewis Oct 3, 2018
Live Eikenes Oct 4, 2018