【发布时间】:2013-01-25 11:58:30
【问题描述】:
我写了一个shell脚本来分别处理一堆文件,像这样
#!/bin/bash
#set parameters (I have many)
...
#find the files and do iteratively
for File in $FileList; do
source MyProcessing.sh
done
MyProcessing.sh是调用脚本,调用脚本中使用了主脚本中的变量和函数。
现在我想将我的 shell 脚本移动到集群中,并在迭代中使用 qsub。我试过了
#find the files and do iteratively
for File in $FileList; do
echo "source MyProcessing.sh" | qsub
done
但它不能以这种方式工作。任何人都可以帮忙吗?提前谢谢你。
【问题讨论】:
-
qsub 用于在网格上执行 shell 脚本。
-
以前从未听说过。您使用哪种产品?什么样的网格?
-
@AaronDigulla: qsub 来自 SGE
-
@IgorChubin:什么是 SGE?
-
@AaronDigulla:SUN Grid Engine