#!/bin/bash
source setclasspath /mnt/data/testdaq/work

echo "it is best to move the files in /mnt/data/testdaq/domcal out of this directory first "



cd /mnt/data/testdaq/domcal

echo "running only calibrate dom on ports 5000 to 5003 "
nohup java icecube.daq.domcal.DOMCal fathub2 5000 4 /mnt/data/testdaq/domcal/ calibrate dom &

echo "running calibrate dom calibrate hv on the other 60 doms "
nohup java icecube.daq.domcal.DOMCal fathub2 5004 60 /mnt/data/testdaq/domcal/ calibrate dom calibrate hv &

echo " after domcal is finished you still need to run java icecube.daq.domcal.HV2DB /mnt/data/testdaq/domcal program to get the new voltages into the database"



