Linked Questions
12 questions linked to/from sending text input to a detached screen
8
votes
1
answer
29k
views
Linux - Sending a command to a screen through a shell script? [duplicate]
I'm trying to figure out how to make a script that will be able to send commands to a screen that will execute within whatever the screen is doing. Is this possible, and if so, how is it done? I've ...
2
votes
2
answers
2k
views
Unable to 'stuff' commands into a created 'screen' immediately after creating it [duplicate]
Possible Duplicate:
sending text input to a detached screen
With reference to the answered question:
Sending input to a screen session from outside
I am trying to write a script that will create ...
4
votes
1
answer
1k
views
Select screen in detached screen session [duplicate]
In screen there is a kill command, which kills the current window. This command can be sent even to a detached screen session by running:
screen -S SessionName -X kill
This works to kill the current ...
-2
votes
1
answer
1k
views
How to send a message in Minecraft before rebooting the server? [duplicate]
I have a Ubuntu Linux Server 14.04 LTS which is running a Minecraft server.
I want it to reboot every 6 hours. I have that now and after the reboot, it starts the Minecraft server.
Now what I want. I ...
2
votes
1
answer
512
views
Cron & Gnu Screen - Trouble with detached screen [duplicate]
Possible Duplicate:
sending text input to a detached screen
I have a script for my Minecraft server that runs automatically every 15 minutes. The problem is that after a server reboot, minecraft ...
27
votes
3
answers
16k
views
GNU screen: print a detached session to stdout
I just want to have a quick overview of my detached GNU screen sessions. Is it possible to dump the current content to stdout ? Something like
screen --print SESSION_NAME > file.txt
18
votes
2
answers
11k
views
Sending input to a screen session from outside
My scenario is this:
I have a screen session running in a remote location. Inside this screen is a consoled-based program. When run without screen, this program starts in the terminal and accepts ...
7
votes
2
answers
7k
views
Why is screen seemingly doing nothing with commands passed with -X?
I've been trying to set up an automated backup system for a minecraft server, and I'm having trouble with screen, specifically when using 'screen -r sessionname -X "/var/minecraft/somebatchfile"', ...
6
votes
1
answer
3k
views
Trouble sending command to detached Screen session
I would like to send a command to a screen session and if possible get the output.
My attempt at sending a command to a screen session is as I found on this website and lots of others, but it doesn't ...
1
vote
2
answers
357
views
Send quit keystroke (Q + Enter) to program after running for a certain period of time
Some terminal programs have a quit keystroke to safely stop their execution, for example:
Q+Enter
From this question I learned that the timeout command allows to send signals to a program after a ...
0
votes
1
answer
391
views
Send very long commands to detached screen results in "ERROR remote control too long"
I have long commands to send to a detached screen. I used :
screen -x screen-name -p 1 -X stuff 'mycommand\n'
As inspired by this related post. It works, but if mycommand is very long I get the ...
1
vote
1
answer
234
views
Join an interactive session of a process launched from rc.local
Is there a way to join an interactive session of a process that was ran on boot with /etc/rc.local, or send it "stop" over STDIN on reboot/shutdown and wait for it to end before shutting down?