-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_batch.sh
executable file
·55 lines (47 loc) · 1.06 KB
/
run_batch.sh
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
#$ -S /bin/bash
#$ -cwd
#$ -r y
#$ -j y
#$ -l mem_free=2G
#$ -l arch=linux-x64
#$ -l netapp=5G,scratch=5G
#$ -l scrapp=250G
#$ -l scrapp2=250G
#$ -l h_rt=335:59:59
#$ -R y
#$ -V
##$ -q lab.q
#$ -l hostname="i*" #-- anything based on Intel cores
##$ -l hostname="!opt*" #-- anything but opt*
##$ -m e #-- uncomment to get email when the job finishes
#$ -t 1-100 #-- specify the number of tasks
SGE_TASK_ID=1
#let "SLEEP_TIME=$SGE_TASK_ID*2"
#sleep $SLEEP_TIME
date
hostname
#echo
PWD_PARENT=$(pwd)
#for DIR in modeling*; do
i=$(expr $SGE_TASK_ID)
DIR=modeling$i
if [ ! -d $DIR ]; then
mkdir $DIR
fi
cd $DIR
PWD=$(pwd)
echo $PWD_PARENT : $PWD
if [ $PWD_PARENT != $PWD ]; then
#usage : run_qsub.sh REPEAT1 REPEAT2 N_COPY SYMMETRY
../run_qsub.sh 50000 20000 3 True
#../run_qsub.sh 50000 20000 3 False
#../run_qsub.sh 50000 20000 1 False
#../run_qsub.sh 50 20 1 False
cd ..
fi
#done
#echo
date
hostname