#!/bin/bash

logtag=$(date "+%Y.%m.%d-%H.%M.%S")
mkdir -p logs

for i in $(seq 0 31) ; do
    rot=$(echo "print ($i * 11.250000)" | bc)
    Gate -a [run_id,$i][rot_angle,$rot] mac/main.mac >& logs/Gate.$logtag.$i.txt &

wait
