I've parallelized a for cycle in bash using GNU Parallel.
This is a very simple example to show what I want to reach:
seq 10 | parallel -n0 echo "Hello World" &
I would like to detach from terminal all the run, except the last one, thus removing the & only in the last cycle.
Is there a way to do this?
Since I was not very clear, I'll try to explain myself in a better way:
I have a simulator starting, then with GNU parallel I launch many times the same script that connect with the simulator. I want all of them detaching from the terminal except the last one to avoid confusion with overlapping output.