Not Just Paranoid

Another site by Pete Maynard

Inject things into a screen session

Say you have a screen session running and you want to have a bash script access and run a command, you can do it with this.

#!/bin/sh
screen -S minecraft -p 0 -X stuff "`printf "say This is a test.\r"`";

This injects the command “say This is a test” to the screen called minecraft. Found it on the minecraft forum. Pete

22 Jan 2011 | Tags ( bash insert minecraft screen )

Website Last Updated on 15 Sep 2023 (CC BY-SA 4.0)

This site uses JQuery and nanogallery2 hosted by jsdelivr.net
for the Flickr photo feed and GoatCounter for user insights.