Questions tagged [gnu-screen]

GNU Screen is a software application that can be used to multiplex several virtual consoles.

GNU Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.

310 questions
0
votes
1 answer

screen -r and screen -list only show last screen

My problem is pretty much as the title describes it. I am running ssh session and on my server I screen for multitasking. My issue here is that I have at least 4 screens open and detached, but screen -r connects only the the last screen I have…
kgizdov
  • 205
  • 1
  • 2
  • 4
0
votes
2 answers

directing monitoring function of GNU Screen to the hardstatusline

I really like the monitoring function in screen c-M and c-_ but whenever an event happens (or doesn't happen if c-_) on a screen I am monitoring the message doesn't go to the hard status line I have. What I really want, yet have no idea how to do,…
devin
  • 1,246
  • 3
  • 20
  • 27
0
votes
2 answers

GNU screen without output caching

For a long running script we are using screen to be able to close the ssh session without stopping the script. Screen, however, keeps saving the output which is resulting in a very high diskio. My question: how can I start a screen session which…
0
votes
1 answer

Docker attach to curses process

I'm trying to use docker attach to attach to curses-based graphical process: $ docker run --name irssi -it pandrew/irssi irssi When you detach from this process using ^P^Q and reattach with docker attach irssi it looks like nothing happened. But,…
Dmitry Minkovsky
  • 557
  • 3
  • 9
  • 22
0
votes
1 answer

Starting a detached screen has no effect

I want to start a shell script in detached mode on ubuntu bootup (via cronjob @reboot) but it doesn't even work when I try it directly. Syntax: screen -d -m -S myscreenname /path/to/my/script.sh There is no feedback at all and no screen is being…
user3245821
  • 63
  • 1
  • 1
  • 5
0
votes
1 answer

GNU screen 4.2.1 in xterm: hardstatus in window title disappears

The only 2 lines in my ~/.screenrc are: termcapinfo xterm* 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007' hardstatus string "%h [screen %n%?: %t%?]" In GNU screen version 4.0.3 that I used previously, it set the hardstatus to be in the window title to…
Alan
  • 1
  • 1
0
votes
1 answer

sudo su in screen -- security issue?

Just logged back into a server and reconnected to an existing screen using screen -R. I had completely forgotten that I'd used sudo su - earlier and had not exited afterwards, so when I reconnected via screen I was back in as root! Is there any way…
Jordan Reiter
  • 1,290
  • 4
  • 20
  • 40
0
votes
1 answer

Unable to send command to newly created screen?

screen -dmS SIEGE_01 sleep 1 screen -S SIEGE_01 -X stuff "cd /home/ss12036/ImpulseNetwork/Servers/SIEGE_01/"`echo -ne '\015'` sleep 1 screen -S SIEGE_01 -X stuff "sh Start.sh"`echo -ne '\015'` There is my code. This is a sh script that will be…
user3106527
  • 27
  • 1
  • 1
  • 3
0
votes
2 answers

Cronjob screen PHP does not executed

If I execute the following in the terminal it works: screen -dmS tt-rss-daemon sudo -u www-data /usr/bin/php /usr/share/nginx/www/tt-rss/update.php --feeds --daemon If I write the following in a Crontab (crontab -e) and restart the machine nothing…
Franz
  • 1
0
votes
1 answer

Ubuntu - Abnormal behavior on "screen" command

I'm trying to send to the background "bitcoind". $ screen bitcoind -daemon & [1] 5289 Then I query for this process PID and the PID have changed $ ps -ef | grep bitcoin someuser 4003 1 14 16:16 ? 00:00:39 bitcoind -daemon someuser …
André
  • 181
  • 4
  • 6
  • 14
0
votes
2 answers

Clean up orphaned screen sessions for defunct users

I've run into the problem where I have users logging in to servers under customer accounts, opening a screen session as that user, and then never closing it. Ordinarily this wouldn't be much of a concern, however we're running into an issue where if…
Sammitch
  • 2,111
  • 1
  • 21
  • 35
0
votes
1 answer

Open screen process in terminal from script

I have a minecraft server running in screen, and right now, it is just a script that starts java like so: screen -dmS mc java -Xincgc -Xms1024M -jar craftbukkit-1.6.4-b2882.jar Basically this just starts minecraft in a screen container in the…
0
votes
1 answer

Can I make gnu screen display a message to a user when they attach to a screen session

I was wondering if there is a way to make screen display a message to a user when they attach to a screen session? For instance, if it is preferred that a user does not use a shared screen session for their personal activities "Please do not use…
lacrosse1991
  • 1,437
  • 5
  • 20
  • 26
0
votes
1 answer

Auto-restart "screen" script not working

I'm looking over a script that would actually be restarting game-servers in case they crash. The game-servers are actually started in a screen session through a control panel. They have to be restarted by killing their respective screen session and…
Asad Moeen
  • 437
  • 3
  • 11
  • 22
0
votes
2 answers

Screen command in shell scripting

I am a newbie in shell scripting and want to use the screen command to automate the below scenario: Create a screen session1 and execute a shell script1 create another screen session2 and execute another shell script2, and if this result is success…
shelly
  • 11
  • 1