Skip to content

Instantly share code, notes, and snippets.

@bencord0
Created March 9, 2013 15:06
Show Gist options
  • Save bencord0/5124444 to your computer and use it in GitHub Desktop.
Save bencord0/5124444 to your computer and use it in GitHub Desktop.
screen_it
function screen_it {
NL=`echo -ne '\015'`
SCREEN_NAME=${SCREEN_NAME:-screeened}
screen -S "$SCREEN_NAME" -X screen -t $1
sleep 1.5
screen -S "$SCREEN_NAME" -p $1 -X stuff "$2""$NL"
}
screen_it e2-p1 "console e2-p1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment