[868c5d]: / bin / _script_exe_n_times.sh

Download this file

26 lines (19 with data), 475 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
#$ -cwd
#$ -S /bin/bash
#
set -o nounset -o pipefail -o errexit
# set -o xtrace
iteTot=10
i=1
for i in $( seq 1 $iteTot )
do
echo $i
today=`date +%Y-%m-%d`
random_number=$(shuf -i1-100000 -n1)
method="random_forest_class"
jobName=$method"_"$today"_rand"$random_number
outputFile="../results/"$jobName
qsub -q hoffmangroup -N "-"$jobName -cwd -b y -o $outputFile -e $outputFile Rscript random_forest_class.r > $outputFile 2> $outputFile
done