Ok, now suppose that my_program takes two arguments and I want to use parallel
to run the program in pairs. For example, if
x=(0.1 0.2 0.3)
y=(0.4 0.5 0.6)
then I want to get:
my_program ${x[0]} ${y[0]}
my_program ${x[1]} ${y[1]}
my_program ${x[2]} ${y[2]}
Now if I useĀ "parallel my_program
Read then man page for --xapply and then answer your own question.
/Ole
On Thu, Jan 12, 2012 at 4:41 PM, gsermaid wrote:
> Ok, now suppose that my_program takes two arguments and I want to use
> parallel to run the program in pairs. For example, if
>
> x=(0.1 0.2 0.3)
> y=(0.4 0.5 0.6)
>
> then
Thank you!
From: Ole Tange
To: gsermaid
Cc: "[email protected]"
Sent: Thursday, 12 January 2012, 15:57
Subject: Re: bash arrays in parallel
Read then man page for --xapply and then answer your own question.
/Ole
On Thu, Jan 12, 2012 at 4:41 PM, gsermaid
On Mon, Dec 12, 2011 at 4:19 PM, Hans Schou wrote:
> 2011/12/11 Ole Tange :
>> On Fri, Dec 9, 2011 at 2:55 PM, Hans Schou wrote:
>>> I need to find a line on all servers. Some servers might be down in my
>>> list so I just want parallel to timeout after 10 sec:
>>>
>>> $ time parallel --tag -j30