#!/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