帮忙看一下这段脚本是做甚么的

sh/bash/dash/ksh/zsh等Shell脚本
回复
syfnet
帖子: 213
注册时间: 2009-07-13 16:23

帮忙看一下这段脚本是做甚么的

#1

帖子 syfnet » 2009-08-20 10:12

请帮忙解释一下这段脚本:
If you have a Linux Beowulf cluster,you can perform the individual dockings in parallel. Continuing with our example, instead of executing the body of the above loop,we will write it into a series of *.job files and use qsub (a PBS command)to schedule them to be executed by the cluster:

代码: 全选

for f in ligand_*.pdbqt; do
    b=`basename $f .pdbqt`
    echo Processing ligand $b
    j=${b}.job
    d=`pwd`
    mkdir -p $b
    echo "#! /bin/bash" > $j
    echo "cd $d" >> $j
    echo "vina --config conf.txt --cpu 1 --ligand $f --out ${b}/out.pdbqt --log ${b}/log.txt > ${b}/stdout 2> ${b}/stderr" >> $j
    chmod +x $j
    qsub -l cput=00:30:00 -l nodes=1:ppn=1 -l walltime=00:30:00 -l mem=512mb $j
done
上次由 syfnet 在 2009-08-20 10:26,总共编辑 1 次。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 帮忙看一下这段脚本是做甚么的

#2

帖子 eexpress » 2009-08-20 10:16

你找qsub是干嘛的啊
● 鸣学
syfnet
帖子: 213
注册时间: 2009-07-13 16:23

Re: 帮忙看一下这段脚本是做甚么的

#3

帖子 syfnet » 2009-08-20 10:24

这段脚本是别人编写的,我只是拿来用,为更好的使用先要搞清一下原理。应当是一段并行运算的程序吧,但具体事项不清楚,其中vina是一个可执行程序。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 帮忙看一下这段脚本是做甚么的

#4

帖子 eexpress » 2009-08-20 10:27

vina又没执行,执行的是qsub。

难道你被愚弄了?
● 鸣学
头像
O_O_BOT
帖子: 2461
注册时间: 2009-05-20 19:32

Re: 帮忙看一下这段脚本是做甚么的

#5

帖子 O_O_BOT » 2009-08-20 10:35

vina有执行 in xx.job..
irc 聊天室
ubuntu-cn 的irc 频道为
irc.ubuntu.com 8001 #ubuntu-cn
UTF8编码 可用 irssi xchat pidgin weechat 登录

http://webchat.freenode.net/?channels=ubuntu-cn
[url]irc://irc.freenode.net/ubuntu-cn[/url]
syfnet
帖子: 213
注册时间: 2009-07-13 16:23

Re: 帮忙看一下这段脚本是做甚么的

#6

帖子 syfnet » 2009-08-20 10:42

难道是分配每一个工作到不同的cpu?
回复