From 4fbda5a9af95345504636d178e26b248791a2262 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 26 Dec 2017 19:36:21 +0000 Subject: Initial commit. No history was lost as the scripts had no history in the first place. --- rconsole/rconsole-input | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 rconsole/rconsole-input (limited to 'rconsole/rconsole-input') diff --git a/rconsole/rconsole-input b/rconsole/rconsole-input new file mode 100755 index 0000000..3fe076e --- /dev/null +++ b/rconsole/rconsole-input @@ -0,0 +1,9 @@ +#!/bin/bash + +trap 'screen -S "$RCONSOLE_SCREEN" -X quit; exit' SIGINT + +PROMPT="(rcon@$RCONSOLE_INSTANCE) " + +while read -e -p "$PROMPT" line; do + printf "$line\n" > "$RCONSOLE_PIPE" +done -- cgit