I'm currently launching a shell file on Gromacs (Linux) with 60 different commands in it. When launching the file the commands are processed sequentially one by one.
I want to launch all of them in parallel and in background.
How can I achieve that?
Here some lines of my shell file:
gmx rms -s md.tpr -n index_analysis.ndx -f md.xtc -o rmsd_fc_chain_B.xvg -tu ns << eof
29
29
eof
gmx rms -s md.tpr -n index_analysis.ndx -f md.xtc -o rmsd_fc_chain_C.xvg -tu ns <<
eof
32
32
eof
gmx rms -s md.tpr -n index_analysis.ndx -f md.xtc -o rmsd_fc_chain_D.xvg -tu ns <<
eof
35
35
eof