bash - Passing arrays to qsub script -



bash - Passing arrays to qsub script -

how pass arrays variable list via qsub job script in pbs environment?

for example:

arr1=(1 2 3); arr2(a b c); qsub -v array1=("${arr1[@]}"), array2=("$arr2[@]") job_script.bash

where job_script.bash has array variables array1 , array2.

when seek run above command submit job next error:

-bash: syntax error near unexpected token `('

am missing in syntax?

i looked many forums help not finding regarding passing arrays above.

can help me above situation?

the problem not appear qsub, rather did not create arr2 variable correctly in shell...

# did this... arr1=(1 2 3); arr2(a b c); # meant this... arr1=(1 2 3); arr2=(a b c);

arrays bash variables qsub

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -