Blame view

runRequest 500 Bytes
ea763814   Elena.Budnik   init
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Prepare & Run Request

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

. $(dirname $BASH_SOURCE)/env.sh

ea763814   Elena.Budnik   init
12
 # delete results of previous calculations
f5a5ef6f   Elena.Budnik   work
13
 rm -rf $SW2NC/$tgt* $SW2DATA/$src/$tgt*
ea763814   Elena.Budnik   init
14
 
af920889   Elena.Budnik   ajust
15
 # delete previous requests 
f5a5ef6f   Elena.Budnik   work
16
 rm -f $REQ/*.xml 
ea763814   Elena.Budnik   init
17

f5a5ef6f   Elena.Budnik   work
18
19
20
21
 cd $SW2ROOT/Bin.py; python makeRequest.py $tgt $tgt_vi $src_vi $TaoStop $SwStop  > log
 DDLogin $DDUSER $DDPWD >> log
  
	
ea763814   Elena.Budnik   init
22
23
24
 # run newly created Request
 for request in $REQ/$tgt*.xml
  do
e2271bb5   Elena.Budnik   work
25
	python run.py $tgt $request & echo $!
ea763814   Elena.Budnik   init
26
27
  done