From babbce9c8bb35cd2434e6953194356e08ca40190 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Fri, 27 Jan 2017 06:27:55 +0000 Subject: [PATCH] Add shell scripts --- run-telegram.sh | 5 +++++ tg.sh | 1 + 2 files changed, 6 insertions(+) create mode 100755 run-telegram.sh create mode 100755 tg.sh diff --git a/run-telegram.sh b/run-telegram.sh new file mode 100755 index 0000000..26034e1 --- /dev/null +++ b/run-telegram.sh @@ -0,0 +1,5 @@ +while true; +do + socat TCP-LISTEN:12345,bind=127.0.0.1,fork - | ./main + sleep 5; +done diff --git a/tg.sh b/tg.sh new file mode 100755 index 0000000..d317f17 --- /dev/null +++ b/tg.sh @@ -0,0 +1 @@ +telegram-cli -W -s action.lua