user2535778
user2535778

Reputation: 11

how to find specific binary files with find command and run them in parallel

I would like to execute some binary files that have the same names and placed in different directories like this:

binary/1/app
binary/2/app
binary/3/app

I want to execute app files at the same time. I have created a bash file in a binary directory and written this command but nothing happened:

find . -name app -type f | parallel  -j 4

Thanks.

Upvotes: 1

Views: 151

Answers (2)

Ole Tange
Ole Tange

Reputation: 33685

The command is correct and ought to work. Maybe you are hit by this: GNU parallel not working at all

Upvotes: 0

GregHNZ
GregHNZ

Reputation: 8969

If you make sh the command, then your apps can be the option:

parallel sh -- `find . -name app -type f`

Upvotes: 1

Related Questions