This section is a work in progress.
How about:
prog1 & prog2 && fg
prog1
.prog2
, and keep it in foreground, so you can close it with ctrl-c
.prog2
, you'll return to prog1
's foreground, so you can also close it with ctrl-c
.Do this to run several tasks (for example,job11
and job12
), wait them to complete, and then continue running more tasks (for example, job21
and job22
):
job11 &
job12
wait
job21 &
job22
You can do this like so: