命令行操作实现Python脚本投递到qsub

2022-09-15  本文已影响0人  云养江停

我尝试使用:

qsub -cwd -l vf=1G,p=1 -P RNAProj -q bc_rd.q -binding linear:2 test.py
其中test.py内容为print('hello world')

并收到此错误:

error

原因是:

qsub is a wapper around a shell (usually a particular shell, but since shell's are similar enough, this isn't usually an issue), not around arbitrary commands. (qsub是针对shell,而不是任意的command)

我的解决办法是:

将您的命令放入shell中并提交

vi test.sh
#请注意要写明你的python路径,$(which python)
python test.py

运行test.sh的shell脚本

qsub -cwd -l vf=1G,p=1 -P RNAProj -q bc_rd.q -binding linear:2 test.sh
上一篇 下一篇

猜你喜欢

热点阅读