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
Post a Comment