On Thu, Feb 23, 2017 at 10:02 PM, Ole Tange <[email protected]> wrote:
> On Thu, Feb 23, 2017 at 6:17 AM, aero <[email protected]> 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