qsub用于Python脚本

时间:2017-09-02 17:35:04

标签: python qsub

我想使用SGE直接在计算群集上提交Python脚本。我有一个测试脚本:

#!/usr/bin/python
print "hello"

我已经在前端运行chmod +x hello.py

./hello.py
>> hello

但是,当我运行qsub -o out.log hello.py时,会生成以下文件:

out.log

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.

hello.py.e707589

print: Command not found.

在我看来,尽管有标题,qsub还是试图将脚本解释为bash脚本。我该如何解决这个问题?

0 个答案:

没有答案