From d04db6886e56cb1110e85c2dee0f0ad0a89ea018 Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Mon, 30 Dec 2019 11:24:19 +0100
Subject: [PATCH] Added an script to start the socat program.

---
 scripts/start_socat.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 scripts/start_socat.sh

diff --git a/scripts/start_socat.sh b/scripts/start_socat.sh
new file mode 100755
index 0000000..3f80553
--- /dev/null
+++ b/scripts/start_socat.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ ! -f "/tmp/$1_gazebo" ]; then
+  socat -d -d pty,raw,echo=0,link=/tmp/$1_gazebo pty,raw,echo=0,link=/tmp/$1_user &
+
+  while true; do sleep 2; done
+fi
+
-- 
GitLab