parameter for shell scripts that is started with qsub

后端 未结 4 699
梦谈多话
梦谈多话 2020-12-12 22:21

how can I parametrize a shell script that is executed on a grid (started with qsub) ? I have a shell script, where I use getopts to read the parameters.

When I star

4条回答
  •  忘掉有多难
    2020-12-12 22:46

    I just figured out how to solve it: just print the commands of the shell scrip with echo and pipe the result to qsub:

    echo "./script.sh var1=13 var2=24" | qsub

提交回复
热议问题