selfjungle Just another WordPress weblog

22Feb/130

bash basics

Executing programs in parallel:

p1 ; p2 ; p3 ; ...

Note: use wait if inside a script, so it waits for each child to finish.

Executing programs sequentially:

p1 ; p2 ; p3 ; ...

Executing programs sequentially, stop if one fails:

p1 && p2 && p3 && ...
Tagged as: No Comments