Hi
I have an embedded device that I want to start screen during an ssh logon.
I have the following script.
#!/bin/sh
SCREENRUNNING=`pgrep SCREEN`
if [ -z "$SCREENRUNNING" ]; then
echo "Screen not running so let's start the Master session
sleep 2
screen -dmS Master
sleep 2
I have the following binding which works as I want it to.
bind E eval copy 'stuff G' 'stuff Y' 'readreg q' colon 'stuff "! command_foo
"' ' paste "q^M"' '"^M"'
The command prints out on the screen "exrc" line with the
argumant pasted from the screen buffer `q'.
My problem is that I cannot make t