diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-26 19:36:21 +0000 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-26 19:40:50 +0000 |
commit | 4fbda5a9af95345504636d178e26b248791a2262 (patch) | |
tree | aa20acbf33686b6843273b175e487ff397abee12 /rconsole/rconsole-input | |
parent | 26d2028b4773aed05707faa7f525075b07da899c (diff) |
Initial commit.
No history was lost as the scripts had no history in the first place.
Diffstat (limited to 'rconsole/rconsole-input')
-rwxr-xr-x | rconsole/rconsole-input | 9 |
1 files changed, 9 insertions, 0 deletions
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 |