I am working with Datastage which uses a Command Executable Stage
to call a parameterized Shell Script. This question is not about datastage. it's about how to call the shell script.
Right now, The logic of datastage is to call the script three times using different parameters for each time it's called. For example:
Call script.sh file1.txt -> Wait for `exit 0` -> call script.sh file2.txt -> Wait for `exit 0` -> call script.sh file3.txt -> wait for `exit 0`
The command for calling the script looks like this:
/var/opt/scripts/Project/script.sh file1.txt
what I'm hoping to do is call all three shell scripts at the same time. How can I call the script in a way that allows me to do it two more times simultaneously?
Thanks.
UPDATE 1
I want to appreciate the incoming on this question. One thing to clear up, is that I cannot call all three script.sh
commands from the same call. This is called from three independent and identical spots in the app.
Thanks