:78 Function create_function() is deprecated [8192]

aesthetics improvements to racs_montior.sh

Marcelo Ponce [2019-06-30 20:10:48]
aesthetics improvements to racs_montior.sh
Filename
tools/racs_monitor.sh
diff --git a/tools/racs_monitor.sh b/tools/racs_monitor.sh
index 9abb05d..2da4b7b 100755
--- a/tools/racs_monitor.sh
+++ b/tools/racs_monitor.sh
@@ -10,7 +10,9 @@
 # instead of using the system fn, 'watch' (usually included in the OS for Linux)
 # we will  define our own, so it also works for MacOS
 mywatch() {
-	while clear; date ; eval $@ ; do sleep 2; done
+	msg=" RACS Monitoring Tool \n -------------------- "
+	t='2'
+	while clear; echo -e $msg; echo -E "`date` -- updated every $t secs" ; eval $@ ; do sleep $t; done
 }

ViewGit