parallel
[Top][All Lists]
Advanced

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

Re: Unexpected positional replacement strings substitution


From: Ole Tange
Subject: Re: Unexpected positional replacement strings substitution
Date: Fri, 24 Feb 2017 20:50:02 +0100

On Thu, Feb 23, 2017 at 10:02 PM, Ole Tange <ole@tange.dk> wrote:
> On Thu, Feb 23, 2017 at 6:17 AM, aero <chahkang@gmail.com> wrote:
>
>> I am going to try like the following.
>> Send divided list to workers. And workers runs own parallel against the list
>> from master.
>>
>> cat SERVERLIST.txt | parallel --pipe -N[ int(lines count of SERVERLIST.txt/
>> number of workers) ] -S worker1,worker2,... 'cat | parallel ...'
>>
>> Is there any other good way to achieve job like this ??
>
> cmd='echo "joe  two  space"'
> cat SERVERLIST.txt | parallel --pipe -N1 -S worker1,worker2
> --roundrobin --cat parallel --slf {} --nonall -q "$cmd"

Forgot -j1 and -j0:

cmd='echo "joe  two  space"'
cat SERVERLIST.txt | parallel -j1 --pipe -N1 -S worker1,worker2
--roundrobin --cat parallel -j0 --slf {} --nonall -q "$cmd"

/Ole



reply via email to

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