parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct way to execute same command in parallel on multiple machines


From: Ole Tange
Subject: Re: Correct way to execute same command in parallel on multiple machines?
Date: Sat, 3 Feb 2018 21:59:46 +0100

On Sat, Feb 3, 2018 at 1:28 PM, Emil Fihlman <emil.fihlman@gmail.com> wrote:

> So I'm experiencing an issue with parallel:
> parallel --tag --nonall --sshloginfile nodelist.txt 'find . -type f | wc -l'
> is ironically executed sequentially on each machine instead of in parallel.
>
> What's the correct way to have parallel execute the command in parallel on
> all machines simultaneously?

>From man parallel:

--nonall
           [...] GNU parallel will log into --jobs number of
           computers in parallel and run the job on the computer. -j
adjusts how many
           computers to log into in parallel.

So add -j0.

/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]