8 screenconsole - Interactive CLI to run GNU/screen commands against current or specified screen session
14 if [ ".$1" = ".-i" ]; then
17 [ -n "${cmd[*]}" ] && screen
-S "$STY" -X "${cmd[@]}"
21 if [ -z "$STY" ]; then
22 echo "$0: No \$STY set. Run within an attached Screen, or run 'screenconsole <ScreenID>'." >&2
25 STY
=$STY exec rlwrap
-S "$STY> " $0 -i