From 2b0e3d1090eabd6b58eb4fee6c74f48b83d4cc7e Mon Sep 17 00:00:00 2001
From: Arno Schoenmakers <schoenmakers@astron.nl>
Date: Tue, 9 Jan 2018 09:58:58 +0000
Subject: [PATCH] TAsk #11541: Removed dependency on temporary file

---
 MAC/Tools/Rubidium/plotrubidium | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/MAC/Tools/Rubidium/plotrubidium b/MAC/Tools/Rubidium/plotrubidium
index 8d5e8d37386..8aee9741af4 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
 
+
-- 
GitLab