# temp folder where merge cases (.zip file jobs) and PBS scripts
mkdir /temp/silverGT

# create the .zip jobs files
# 1st param: where _startingPackage.zip will be unpacked
# 2nd param: where job .zip files shall be created
. Fluo-N2DH-SIM+-01.cmd /tmp/silverGT_ulman /temp/silverGT
. Fluo-N2DH-SIM+-02.cmd /tmp/silverGT_ulman /temp/silverGT

# create the associated .sh jobs that shall be just executed as: qsub $jobFILE.sh
cd /temp/silverGT
mkdir jobs
cd jobs
echo "customize template for 01 video"
for i in ../Fluo-N2DH-SIM+-01__job*zip; do /home/ulman/data/silverGT_SIMdata/scripts2/jobParallelScriptTEMPLATE.sh  $i; done
echo "customize template for 02 video"
for i in ../Fluo-N2DH-SIM+-02__job*zip; do /home/ulman/data/silverGT_SIMdata/scripts2/jobParallelScriptTEMPLATE.sh  $i; done

# it4i site has to be prepared:
# /scratch/temp/silverGT/        - here are the _startinPackage.zip files
# /scratch/temp/silverGT/in/     - here are the job files
# /scratch/temp/silverGT/out/    - here results will be cumulated
#
# upload the .zip files into it4i:/scratch/temp/silverGT/in/
