說明:
首先要能 download phylip,
接著 compiler it
then write run.sh to u progam,
final write run.jdl to send to grid.
and check the feedback is the ce enviroment is corrent,
there often have compiler lib problem,
if the make file have solution, you can choose,
otherwise you need to do static bind.
範例:
run.sh
{{{
#!/bin/sh
INPUT=$1
WORK_DIR=`pwd`
compiler() {
PKG=$1
tar xzf $PKG
cd ${PKG%.tar.gz}/src
make install
mv ../exe/* $WORK_DIR
cd $WORK_DIR
rm -rf {PKG%.tar.gz} $PKG
}
run () {
INPUT=$1
./protdist <<-word
$INPUT
Y
word
}
compiler phylip-3.69.tar.gz
run testfile
}}}
run.jdl
{{{
JobType = "Normal";
Executable = "run.sh";
StdOutput = "std.out";
StdError = "std.err";
InputSandBox = {"run.sh", "phylip-3.69.tar.gz", "testfile"};
OutputSandBox = {"std.out", "std.err", "outfile"};
}}}
需要:
1. Bash shell script
2. make
沒有留言:
張貼留言