I'm attempting to write a very simple script which calls an executable from a higher level folder. If I were just typing the command into the console, I would type
../filenamehere {options} {parameters}
When I try to do the same thing in a .sh file in order to run multiple processes at the same time, I attempt to write the following:
../filename {options} {parameters} &
../filename {options2} {parameters} &
../filename {options3} {parameters} &
../filename {options4} {parameters} &
Then, to run the file, I entered
chmod a+x script_file.sh
./script_file.sh
After which point I was given a "command not found" error 3 times. I assume this means that 1 of my 4 commands executed, but the other 3 didn't. If I type directly into the console exactly the same commands as I put in the .sh file, nothing goes wrong. What do I need to do to make this file run?
ls ..
).