how to process several commands concurrently and continue the rest only after all is done on ubuntu
<p>To be specific, I have two command need to be run in shell on Ubuntu <strong><em>at the same time</em></strong>, like <strong><em>command_A</em></strong> and <strong><em>command_B</em></strong>. And I have some other commands need to be run only after <strong><em>command_A</em></strong> and <strong><em>command_B</em></strong> has finished, named as <strong><em>command_rest</em></strong>. In addition, <strong><em>command_A</em></strong> and <strong><em>command_B</em></strong> run in separate terminals and when they are finished they can close themselves. This maybe need techniques related to <em>signal</em> and <em>wait</em> and <em>gnome-terminal</em> i guess, but i cannot find a solution.</p>