annotate mkCorr.sh @ 4:60bfca1da141

wrong redirect
author Ido Tamir <ido.tamir@imp.ac.at>
date Sun, 18 Aug 2013 17:08:27 +0200
parents 7bdd29cdfed8
children 9abd178b46bd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
1 #!/bin/sh
f106b52086b0 Uploaded
idot
parents:
diff changeset
2 TOOLDIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
f106b52086b0 Uploaded
idot
parents:
diff changeset
3
f106b52086b0 Uploaded
idot
parents:
diff changeset
4 #echo "running corr"
f106b52086b0 Uploaded
idot
parents:
diff changeset
5 #echo $PWD
f106b52086b0 Uploaded
idot
parents:
diff changeset
6
3
7bdd29cdfed8 more debug messages
Ido Tamir <ido.tamir@imp.ac.at>
parents: 1
diff changeset
7 module () {
7bdd29cdfed8 more debug messages
Ido Tamir <ido.tamir@imp.ac.at>
parents: 1
diff changeset
8 eval `/usr/bin/modulecmd bash $*`
7bdd29cdfed8 more debug messages
Ido Tamir <ido.tamir@imp.ac.at>
parents: 1
diff changeset
9 }
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
10
f106b52086b0 Uploaded
idot
parents:
diff changeset
11 if [ -f /biosw/modules/init/modules-env.sh ]; then
f106b52086b0 Uploaded
idot
parents:
diff changeset
12 module load R/3.0.0
f106b52086b0 Uploaded
idot
parents:
diff changeset
13 fi;
f106b52086b0 Uploaded
idot
parents:
diff changeset
14
f106b52086b0 Uploaded
idot
parents:
diff changeset
15 cp $TOOLDIR/corr.R $PWD
f106b52086b0 Uploaded
idot
parents:
diff changeset
16
4
60bfca1da141 wrong redirect
Ido Tamir <ido.tamir@imp.ac.at>
parents: 3
diff changeset
17 ./corr.R "$@" 2>&1 > err.log
1
f106b52086b0 Uploaded
idot
parents:
diff changeset
18
f106b52086b0 Uploaded
idot
parents:
diff changeset
19 if [ $? -eq 0 ]
f106b52086b0 Uploaded
idot
parents:
diff changeset
20 then
f106b52086b0 Uploaded
idot
parents:
diff changeset
21 echo 'correlation result'
f106b52086b0 Uploaded
idot
parents:
diff changeset
22 exit 0
f106b52086b0 Uploaded
idot
parents:
diff changeset
23 else
f106b52086b0 Uploaded
idot
parents:
diff changeset
24 cat err.log >&2
f106b52086b0 Uploaded
idot
parents:
diff changeset
25 exit 1
f106b52086b0 Uploaded
idot
parents:
diff changeset
26 fi