command1 & command2 & command3 & wait # wait for commands 1-3 to finish #### system("command1 &"); system("command2 &"); system("command3 &"); wait; # doesn't behave like the unix wait :(