#!/bin/bash

source current_args
source bash/${arch}.sh

ROOT=$PWD

cd RUNS
for dir in $ROOT/RUNS/* ; do 
    cd $dir 
    ID=$(submit_job_$arch job.sh)
    LIST="$LIST $ID"
done

mkdir -p $ROOT/tmp
job_post_$arch $LIST > $ROOT/tmp/job_post.sh
cd $ROOT/logs
submit_job_$arch $ROOT/tmp/job_post.sh > /dev/null
