#!/bin/sh
 
if [ $# -ne 2 ]; then
        echo "Usage: $0 temperature A/B "; exit 1
fi
echo
echo starting cold_boot_test_for_changing_temp-one-minute.pl at 'date'
echo output will be written in ~/Results/Reboot/$1$2
 
killall dtsx 
mkdir $HOME/Results/Reboot/$1$2
cd $HOME/Results/Reboot/$1$2
 
year=$(date +%Y)
month=$(date +%m)
day=$(date +%d)

 
#mkdir $year
#cd $year
#mkdir $month
#cd $month
#mkdir $day
#cd $day

 
stoptestdaq
on all
gotoiceboot
echo "sleeping 30sec to make sure dtsx is dead..."
sleep 30
dtsxall

nohup cold_boot_test_for_changing_temp-one-minute.pl &
