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

learn more… | top users | synonyms

16
votes
7answers
11k views

Using ctrl-arrow keys with PuTTY and screen

I searched and couldn't find a solution for this anywhere. I'm using PuTTY from Windows to connect to various servers where I run bash and screen. It seems bash works fine with ctrl-arrow keys to ...
2
votes
1answer
177 views

Cygwin Screen and SSH: Utmp slot not found -> not removed

When I use screen on my computer and detach, I am taken back to the command prompt and everything is fine. However, if I SSH into my computer remotely and use screen, when I try to detach I get the ...
-6
votes
1answer
53 views

execute script at particular time in amazon ec2 linux [closed]

I am newbi in amazon ec2 as well as linux, I am working on pentaho kettle, for starting my job process i m using following command in amazon ec2 instance, cd /dev/pdi/data-integration (reaching to ...
0
votes
0answers
65 views

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, ...
0
votes
2answers
27 views

how to create a screen session within an existing screen session

Case scenario: When I open my terminal, screen starts automatically. This is useful because I often need multiple screens locally within the same terminal. However, if I connect via SSH to a server ...
0
votes
0answers
23 views

Running terminal attach to a screen [duplicate]

I have multiple projects running in several terminals. Before starting them I had no idea about the screen. Since I have multiple projects running on my machine(server), as well as I work on the same ...
1
vote
1answer
41 views

Byobu - How to disconnect from lxc-console

I am inside Byobu on ubuntu 12.04 and entered an lxc-console. Unfortunately, the escape sequence for lxc appears to be cntrl-a q. However this clashes with Byobu's which also uses cntrl-a sequence. I ...
-1
votes
2answers
254 views

How to setup `screen` command to run for every ssh session?

I'd like to record the activity for every ssh user connecting to my box. I think screen could help with it. I'm thinking on having screen running for every ssh user automatically upon ssh login and ...
0
votes
0answers
30 views

Script for creating a session with multiple tabs

I am new to screen utility in CentOS, I've seen this utility being used by OpenStack for logging different services. I am trying to imitate same with my custom script, but I'm unable to :( I've to ...
0
votes
1answer
68 views

How to use screen with mysql import

I need to import a very large MySQL table on remote server. Usually I'm using mysql -u mysql_user -pMypass db_name < sql_data.sql But it takes about 5 hours to complete the task. I tried using ...
0
votes
0answers
13 views

screen command on startup can't reattach [duplicate]

@reboot . ~/.profile; screen -A -d -m -S test6 pwd i'm trying to get screen to work like if I run it from terminal. Terminal: # screen -S test6 in screen# pwd /home/me/ in screen# ...
1
vote
1answer
149 views

Start Unix screen, Run command, Detach

How can screen be used to start a new session and run a command within that session without killing that session? screen -S myScreenName runSomething I tried the above command and it says [screen ...
2
votes
7answers
11k views

Remote Desktop Connection Screen is totaly black but server is working perfectly

Server is working perfectly but when I do RDC screen is only black. This happened before and I fixed it by powering off the server via KVM/IP, but I don't want do that again. How can I fix this issue. ...
6
votes
6answers
8k views

Can't get detached screen to resume

I use putty and have an unreliable wireless connection, so I use screen to keep my work going. Often I'll get disconnected, and then I can't reattach my screen. I'll run screen -D -RR and it will just ...
0
votes
1answer
51 views

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 ...
16
votes
3answers
8k views

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the ...
11
votes
4answers
2k views

How to check if I'm in screen session?

is it somehow possible to check if I'm right now in screen session? I need it to determine if hitting ctrl+d would disconnect me from server or just close current screen. Thanks.
0
votes
2answers
59 views

Cronjob screen PHP does not executed [duplicate]

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 ...
0
votes
1answer
19 views

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'` ...
-4
votes
4answers
51 views

linux - screen command - how to kill a screen?

I'm using screen on my home server. I start it by issuing screen -dmS [name] Then, when I've connected I can Ctrl+A, n to jump between screens and Ctrl+A, c to create new ones... How, however, I ...
9
votes
2answers
277 views

Cannot reattach to a screen session after SSH connection was dropped

I have previously reattached to a long-running screen session with screen -dr control. However, sometimes this command will not reattach to the screen and instead hang forever (10+ minutes after which ...
0
votes
3answers
88 views

Linux: Connect to another a terminal session

I can use screen or tmux to connect to other terminal sessions, or to share them. But this work only when we first know we will use them. As root can access everything, is there a way to do the same ...
53
votes
13answers
54k views

How to reconnect to a disconnected ssh session

Is there a way to connect to an ssh session that was disconnected? We are having problems with our network connection to a remote site that we are working on separately; however, in the mean time we ...
1
vote
1answer
71 views

krenew command not working : Permission Denied

I am using a Linux server to perform my simulations. The login and the file-system of the server are protected using kerberos. The file-system is supported using NFS. Since my simulations take a lot ...
-1
votes
1answer
50 views

Gnu Screen: How to specify a .screenrc file on startup? [closed]

Is there a way to launch Screen with a specific .screenrc file, instead of the one in my home directory?
2
votes
2answers
1k views

Running screen without root

I recently updated screen on my server and for some reason when logged in as a normal user I can no longer create a screen session. If I run sudo screen it works. It's probably a permissions error ...
0
votes
1answer
35 views

Ubuntu - Abnormal behavior on “screen” command [closed]

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 ...
4
votes
1answer
288 views

nohup vs screen vs ? for manually starting daemon processes

When I need to start a background process on a low-importance server, I tend to use nohup: nohup ./server.sh & Most colleagues seem to prefer screen: screen -D -R mydaemon ./mydaemon.sh ^A ^D ...
1
vote
1answer
73 views

SCREEN: Permissions and security

I was just looking for some clarification on the screen command and permissions: I ran this command to allow the user to view their detached screen. Otherwise the user could not view their detached ...
35
votes
5answers
15k views

Sudo as different user and running screen

Found out today that running screen as a different user that I sudo into won't work! i.e. ssh bob@server # ssh into server as bob sudo su "monitor" - screen (fails) I have a script that ...
0
votes
2answers
186 views

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 ...
1
vote
0answers
62 views

Exiting copy / scrollback mode upon detach in byobu / screen

I've discovered that if I go into "copy mode" or "scrollback mode" in a byobu screen, detach from it and leave it running, the buffer will fill up and eventually block the process I'm running in the ...
0
votes
0answers
29 views

File Screening Templates - Large Images

I've got a Windows Server 2008 R2 which works as a File Server and will replace the current production file servers. In the past my company experienced a lot of troubles with data, due the users not ...
1
vote
2answers
38 views

How to specify different screen session name during ssh

I have multiple screen sessions running on one of my server (say session_read, session_prod..) Currently I specify the screen session after I have sshed into my server. Is there a way to specify the ...
0
votes
1answer
107 views

Open screen process in terminal from script [closed]

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 ...
-4
votes
1answer
75 views

Rackable 2U LCD Personalization

So I have several of these machines, however rather than physically labeling them (which I'd rather not do because there is really no place to do it, I would like to have the computer name displayed ...
2
votes
2answers
87 views

Linux - show screen logs on multiple screens?

I have a problem with screen. Basically I want it to make one log per screen, for example screen #1 will be screenlog.1 & screen #2 will be screenlog.2 - you get the memo. Anyhow, what happens is ...
0
votes
1answer
108 views

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 ...
5
votes
4answers
1k views

GNU Screen and Tmux: tips and tricks

So I am a big fan of the multiplexers like GNU Screen and Tmux, but even using Screen for years now I still recognize that there are many things there I don't know (and I only use Tmux for a couple of ...
1
vote
1answer
780 views

why i cannot run screen command on openshift?

i am using redhat openshift, and find some problems now: a) why default screen can not support path which contains too much characters [xxname-xxname.rhcloud.com ~]\> which screen /usr/bin/screen ...
5
votes
3answers
322 views

Can I create and manipulate unix “screens” in a script?

I have a work environment on my Ubuntu laptop in which I want to use three different screens. Eg. in terminal, I usually write screen -S mywork run_server_1 then, ctrl-a c to create a second ...
0
votes
1answer
72 views

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 ...
5
votes
4answers
4k views

Need a solution to stop students from rotating screen on laptops with intel graphics

We have some students who have figured out how to rotate the screen using either the hotkey combination or right click context menu. It's easy to fix but it's time consuming because no matter how many ...
1
vote
2answers
336 views

Remote synchronous-then-asynchronous execution with SSH

TL;DR I want to remotely execute a script that begins synchronously (so that the local ssh command fails if the preparatory commands fail) and then goes asynchronous, thus terminating the local ssh ...
0
votes
3answers
273 views

How/What RC level to use to start a screen with Display attached.

Some times, after a reboot, some of my apps that have a GUI close. These apps provide web interface as well, but only if their gui potion is open. If the unit is physically available to me, I can ...
0
votes
2answers
742 views

Ubuntu Crontab or init script startup [duplicate]

What am I doing wrong here with cron on boot? Example: To launch manually: screen -S example ./script.sh To recover manually: screen -x example now, I just try to do the same thing (well, the ...
-3
votes
1answer
88 views

GNU screen, tmux, dvtm - none are working as ordinary user on OVH VPS [closed]

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
1
vote
1answer
883 views

run several bash scripts with expect code and leave them running

I have a bunch of several bash scripts that will perform some actions that require user input, therefore I'm using expect with it. However, I need one to keep running. But if I use expect, the expect ...
0
votes
2answers
80 views

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 ...
1
vote
2answers
99 views

Close/Quit All Screens with SSH

I have a lot of screens on my server. With screen -ls I get: There are screens on: 12858.test1 (Detached) 28210.test2 (Detached) 12494.moretesting3 (Detached) 31787.testingfour4 ...