我尝试使用:
qsub -cwd -l vf=1G,p=1 -P RNAProj -q bc_rd.q -binding linear:2 test.py
其中test.py内容为print('hello world')
并收到此错误:
原因是:
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