I am writing a shell script (on git) where i need to run two command at the same time, simultaneously. The situation is something like
- The script start to run
- It contains a function which run for 10 sec. It generates a new output every second. It means 10 output for 10 sec run.
- Another function which runs for 10 sec. The input for this function is the output of above function.
The problem is i can not go to the second function until first function execution is over.
Until both function run mutually i can not get the desired out. What to do?
Any help in this regard is welcome.