summaryrefslogtreecommitdiff
path: root/rconsole/rconsole-input
blob: 3fe076e2139f599121a231f3aa113bfe08abb6f1 (plain)
1
2
3
4
5
6
7
8
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