#!/bin/bash
cd
dir='/home/http/html/rig'$1'/'$1'test'$2'/';
file=$dir'report.fin';
if [ ! -e "$file" ]
then
    exit;
fi
c=`ls $dir| grep current | perl -ne 'if (/current_([\d\_\-]+)/){$val = $1; $val =~ s/_/./;print $val,"\n"}'`
/usr/local/bin/make_iv_curves.pl $1 $2 $c --recalculate;
/usr/local/bin/make_report $1 $2 --plot_only;

