
SAMPLING=1000000 # 1 second 

filestr=/mnt/sdcard/seestats/longterm/

stopfile=/data/seestats/stop_lt

echo "mkdir" $filestr
mkdir -p $filestr 

suffixstr="longterm_"$(date +%m)_$(date +%d)_$(date +%Y)_$(date +%H)_$(date +%M)_$(date +%S)"."
filestr=$filestr$suffixstr

# Removing gpu stats - gpubusy gpufreq - from the list 

#for program in cpufreq cpuusage cpuonoff temperature battery  
# do

#	echo starting /data/seestats/$program.out $SAMPLING $stopfile to $filestr$program.$(date +%s).txt
#	/data/data/com.qualcomm.qview/qview/busybox nohup /data/seestats/$program.out $SAMPLING $stopfile > $filestr$program.$(date +%s).txt  2>&1 &  

# done

for script in longterm2_onetime 
do

	echo starting /data/seestats/$script.sh to $filestr$script.$(date +%s).txt
	/data/seestats/$script.sh > $filestr$script.$(date +%s).txt  2>&1   

done

echo "## Done master (long term) utility" $(date +%s) $(date)  



