bedis9

a little bit of anything

parallel execution in bash

You want to run X commands in parallel from bash, just do:

$ for i in {1..X} ; do (command -arg &) ; done

Replace X by the number of command in parallel you want to run.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: