diff --git a/MAC/Tools/Rubidium/plotrubidium b/MAC/Tools/Rubidium/plotrubidium index 8d5e8d373860fdf14de8f54fe82992b355c105ff..8aee9741af4752c026463e10adaa2c1748d139ef 100755 --- a/MAC/Tools/Rubidium/plotrubidium +++ b/MAC/Tools/Rubidium/plotrubidium @@ -5,11 +5,9 @@ # if [ "$1" != "" ]; then - cp /var/log/ntpstats/rubidium_log.$1 /localhome/data/rubidium_log - + export now=$1 else - now="`date +%Y%m%d`" - cp /var/log/ntpstats/rubidium_log.$now /localhome/data/rubidium_log + export now="`date +%Y%m%d`" echo "Usage: plotrubidium yyyymmdd" sleep 1 @@ -25,9 +23,10 @@ set xlabel "date-time (UT)" set timefmt "%Y-%m-%dT%H:%M:%S" set xdata time set format x "%d %b-%H:%M" -plot "/localhome/data/rubidium_log" using 1:5 every 20 notitle; - +plot '/var/log/ntpstats/rubidium_log.'.`echo $now` using 1:5 every 20 notitle; + pause 300 reread EOF +