美文网首页
命令行操作实现Python脚本投递到qsub

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

作者: 云养江停 | 来源:发表于2022-09-15 09:19 被阅读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

相关文章

网友评论

      本文标题:命令行操作实现Python脚本投递到qsub

      本文链接:https://www.haomeiwen.com/subject/dbllortx.html