When I run my executable code from the command line,
./optAlg data/1.dat 50000
my program runs fine.
I want to wrap it in a loop in bash.
When I put it in the loop shown below, I get
./batchRun.sh: line 5: ./optAlg.exe data/1.dat 50000: No such file or directory
(and the same message for all other files in the data folder)
What am I doing wrong?
The code that gives the error:
for inputFile in data/*.dat
"./optAlg.exe $inputFile 50000"