|
From: | Emil Fihlman |
Subject: | Re: Correct way to execute same command in parallel on multiple machines? |
Date: | Sat, 3 Feb 2018 23:05:11 +0200 |
On Sat, Feb 3, 2018 at 1:28 PM, Emil Fihlman <emil.fihlman@gmail.com> wrote:From man parallel:
> 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?
--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
[Prev in Thread] | Current Thread | [Next in Thread] |