From e6081248565abd3c4ab26a27a7c9bf3ea496a875 Mon Sep 17 00:00:00 2001 From: Maicon Kist Date: Tue, 26 Mar 2019 17:07:51 +0000 Subject: [PATCH] added script to automatize start --- app/wins_start.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 app/wins_start.sh diff --git a/app/wins_start.sh b/app/wins_start.sh new file mode 100755 index 0000000..6d9adae --- /dev/null +++ b/app/wins_start.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ $HOSTNAME == *"server"* ]]; then + echo "Running server app" + python ~/gr-hydra/grc_blocks/app/ansible_hydra_gr_server.py +elif [[ $HOSTNAME == *"rx1"* ]]; then + echo "Running rx1 app" + python ~/gr-hydra/grc_blocks/app/ansible_hydra_vr1_rx.py +elif [[ $HOSTNAME == *"rx2"* ]]; then + echo "Running rx2 app" + python ~/gr-hydra/grc_blocks/app/ansible_hydra_vr2_rx.py +elif [[ $HOSTNAME == *"client"* ]]; then + echo "Running client app" + python ~/gr-hydra/grc_blocks/app/ansible_hydra_gr_client_2tx_2rx.py +fi