So, in my script, I want to start two processes in the background, after this I want to wait for both to complete and I want to get the stdout of the processes in variables.
To run in background, I can use
command &
To get the result in a variable I can run the command within backquotes.
But when I do command &
within backquotes, the whole thing becomes blocking.
So, how do I solve my problem?