kornieff
kornieff

Reputation: 2557

Parallel and sequencial script execution

Need to run the following: if script-a ok, run script -b and script-c in parallel.

Tried the following code, but it runs script-a && script-b and script-c in parallel.

script-a && script-b & script-c & wait

Is there a way to group script-b and script-c?

Upvotes: 2

Views: 32

Answers (1)

William Pursell
William Pursell

Reputation: 212248

Use braces:

script-a && { script-b & script-c & wait; } 

Upvotes: 4

Related Questions