#!/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 -f $REQ/*.xml $ cd $SW2ROOT/Bin.py; python makeRequest.py $tgt $tgt_vi $src_vi $TaoStop $SwStop DDLogin $DDUSER $DDPWD # run newly created Request for request in $REQ/$tgt*.xml do python run.py $request & echo $! done