From 3332b1687239fc8dd25ae9c0b653b207d48cd4a9 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <manuela.kuhn@desy.de> Date: Tue, 21 Jul 2015 16:50:36 +0200 Subject: [PATCH] Added start scripts --- start_scripts/startfilemover.sh | 3 +++ start_scripts/startliveviewer.py | 19 +++++++++++++++++++ start_scripts/startreceiver.sh | 3 +++ start_scripts/startwatcher.sh | 3 +++ 4 files changed, 28 insertions(+) create mode 100644 start_scripts/startfilemover.sh create mode 100644 start_scripts/startliveviewer.py create mode 100644 start_scripts/startreceiver.sh create mode 100644 start_scripts/startwatcher.sh diff --git a/start_scripts/startfilemover.sh b/start_scripts/startfilemover.sh new file mode 100644 index 00000000..8c39f383 --- /dev/null +++ b/start_scripts/startfilemover.sh @@ -0,0 +1,3 @@ +#/bin/sh + +python ../ZeroMQTunnel/fileMover.py --logfilePath="/space/projects/Live_Viewer/logs" --bindingIpForSocket="127.0.0.1" --logfileName="fileMover.log" --parallelDataStreams 1 --dataStreamIp="127.0.0.1" --dataStreamPort="6061" --verbose diff --git a/start_scripts/startliveviewer.py b/start_scripts/startliveviewer.py new file mode 100644 index 00000000..2de0e0f3 --- /dev/null +++ b/start_scripts/startliveviewer.py @@ -0,0 +1,19 @@ +import os +import sys + +import time +from threading import Thread + +### Get configured paths and files +LIVEVIEWER_PATH = os.path.dirname ( os.path.dirname ( os.path.realpath ( __file__ ) ) ) +sys.path.append ( LIVEVIEWER_PATH ) + +from LiveViewer import LiveView + +lv = LiveView() + +lv.start() + +time.sleep(5) +lv.stop() + diff --git a/start_scripts/startreceiver.sh b/start_scripts/startreceiver.sh new file mode 100644 index 00000000..cc9a43e0 --- /dev/null +++ b/start_scripts/startreceiver.sh @@ -0,0 +1,3 @@ +#/bin/sh + +python ../ZeroMQTunnel/receiver.py --outputDir /space/projects/Live_Viewer/zmq_target --tcpPortDataStream 6061 --bindingIpForDataStream 127.0.0.1 --logfile ../logs/receiver.log --verbose diff --git a/start_scripts/startwatcher.sh b/start_scripts/startwatcher.sh new file mode 100644 index 00000000..d38602ea --- /dev/null +++ b/start_scripts/startwatcher.sh @@ -0,0 +1,3 @@ +#/bin/sh + +python ../ZeroMQTunnel/watcher_lsyncd.py --watchFolder /space/projects/Live_Viewer/source/ --logfilePath /space/projects/Live_Viewer/ -- GitLab