From e74aca8db2c5176a64a268c470d94f86aea052ca Mon Sep 17 00:00:00 2001
From: Tamas Gal <himself@tamasgal.com>
Date: Wed, 28 Feb 2018 11:35:48 +0100
Subject: [PATCH] Ligier setup

---
 Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 71949aa..e5ca298 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
 SHELL := /bin/bash
 SESSION_NAME := km3mon
+DAQ_LIGIER := 192.168.0.110
+STANDARD_TAGS := "IO_EVT, IO_SUM, IO_TSL, IO_TSL0, IO_TSL1, IO_TSL2, IO_TSSN, MSG, IO_MONIT"
 
 default: start
 
@@ -8,7 +10,14 @@ start:
 	@tmux new-session -d -s ${SESSION_NAME} \
 	    || (echo Please run \"make stop\" to close the current session.; exit 1)
 	@tmux rename-window -t ${SESSION_NAME}:1 ligier
-	@tmux send-keys -t km3mon:ligier.1 "JLigier -d2 -P 5553" Enter
+
+	@tmux send-keys -t ${SESSION_NAME}:ligier.1 \
+	    "JLigier -d2 -P 5553" Enter
+	@sleep 1  # wait a second for JLigier
+
+	@tmux split-window -v -t ${SESSION_NAME}:ligier
+	@tmux send-keys -t ${SESSION_NAME}:ligier.2 \
+	    "ligiermirror -m \"${STANDARD_TAGS}\" ${DAQ_LIGIER}" Enter
 
 stop:
 	tmux kill-session -t ${SESSION_NAME}
-- 
GitLab