Blame view

runRequest 490 Bytes
ea763814   Elena.Budnik   init
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
#!/bin/bash
# Prepare & Run Request

tgt=$1 # prefix
tgt_vi=$2
src_vi=$3
TaoStop=$4
SwStop=$5

. $(dirname $BASH_SOURCE)/env.sh

 # delete results of previous calculations
 rm -rf $SW2DATA/temp $SW2DATA/$tgt*
 
 # delete previous requests
 rm $REQ/*.xml 

 cd $SW2ROOT/Bin.py; python makeRequest.py $tgt $tgt_vi $src_vi $TaoStop $SwStop > $tgt\.log
 DDLogin $DDUSER $DDPWD > ddlog
 
 # run newly created Request
 for request in $REQ/$tgt*.xml
  do
	python run.py $request & echo $!
  done