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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -