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

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
0answers
8 views

screenrc subshell for every window [migrated]

.screenrc: shell -${SHELL} caption always "%n(%t) %= %{b}@%H[%l] : %{r}%c:%s" termcapinfo xterm ti@:te@ termcap xterm 'AF=\E[3%dm:AB=\E[4%dm' terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm' ...
1
vote
0answers
49 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 ...
0
votes
0answers
25 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
46 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
56 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 ...
0
votes
1answer
36 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 ...
1
vote
1answer
15 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 ...
0
votes
1answer
12 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'` ...
0
votes
2answers
47 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 ...
-4
votes
4answers
47 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
239 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
63 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 ...
-1
votes
1answer
38 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?
0
votes
1answer
32 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 ...
3
votes
1answer
142 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
0answers
30 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
2answers
128 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 ...
0
votes
0answers
16 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
34 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
103 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 ...
1
vote
1answer
71 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 ...
-4
votes
1answer
70 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
74 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
90 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 ...
1
vote
1answer
62 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 ...
0
votes
1answer
63 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 ...
0
votes
2answers
551 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 ...
1
vote
2answers
242 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 ...
-3
votes
1answer
78 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 ...
0
votes
2answers
67 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 ...
0
votes
2answers
50 views

Quitting Screens With Same Name With SSH [duplicate]

I have a server, with a few screens started. This is what shows when I use screen -ls: There are screens on: 12811.screen (Detached) 2061.screen (Detached) 7055.screen (Detached) ...
1
vote
2answers
95 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 ...
0
votes
0answers
157 views

Problems running screen without root permissions

I'm running Ubuntu 11.10 on a VPS and have problems running screen for non root users. Screen is working fine with root though. When I run it as root and hit "tty" I receive the following output: ...
1
vote
1answer
134 views

Is there a way to reattach screen session that has no named pipe in /tmp/uscreens/…?

I was having difficulty reattaching to a screen session, so I tried to kill the client screen session and reattach to the server session. This failed. Then I did something kinda stupid. I did a ...
0
votes
1answer
159 views

screen, expect and scripted detached interaction

Trying to write a bash script which will open a screen, start a python application, and interact with the python interaction as required when it is first started. If not possible in screen, I would ...
-5
votes
1answer
53 views

Fix thise Code (Debian Screen output) [closed]

This shell script dosent give me any output: GID="gmod01" PID= screen -list | grep $GID | cut -f1 -d'.' | sed 's/\W//g' echo $PID Echo PID is empty, how can i fix this? I get 12055 out but it ...
0
votes
1answer
148 views

Can't redirect STDERR or STDOUT to file

I have application written in Go language and it runs in screen (I do not think problem relates to Go language. I believe it uses STDOUT and STDERR) screen -S log_server -d -m go run log_server.go 2 ...
0
votes
2answers
93 views

Is there a way to watch all screens output in a single place?

having about 12 screens running long processes, I am willing to check out the state from time to time. I would like to "tail -f " them all in a single console window so I don't have to switch between ...
0
votes
3answers
255 views

How to watch other console without notification?

I want to see what is freelance admin doing to my server. But all solutions i have found - screen, conspy, vnc does't met my needs. Conspy is great but i have to ask free-lancer to run it first to ...
1
vote
1answer
32 views

Can I get the command history in a screen while something is running in it?

I've got a screen with a critical process running in it. I can't kill it, but I need to know the command that was used to start it. Can anyone offer a solution?
2
votes
1answer
1k views

GNU screen: ‘Cannot open your terminal '/dev/pts/3' - please check’

There is daemon in my system, it runs inside of a screen instance and all that is done from an unpriveleged user. I’ve added myself to special sudo group allowing me to run screen from this user, but ...
0
votes
1answer
59 views

Get the session name of a parent gnu screen

I know that the current session name can be accessed with the $STY environment variable, is there a way to get the session name of the parent screen session in case of nested screens?
0
votes
1answer
99 views

Ubuntu 12.10 strange screen

I've installed Ubuntu 12.10 desktop as a virtual machine on my VMware ESXi server. And i have no idea why the screen looks like this. And i can't find anything by googeling. Anyone?
0
votes
1answer
139 views

Crontab start a screen

I started a screen by shell script in crontab, when I entered the screen, the left side became "sh-4.1#". While I runed the script directly, it was nomal with "[root@localhost data]". What happened? ...
-1
votes
2answers
220 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 ...
1
vote
1answer
256 views

GNU screen cannot find terminfo entry on HP-UX

I am trying to make screen work on HP-UX B.11.23 U ia64 0308561483 unlimited-user license. Please notice I do not have root access. I have already compiled screen successfully, configured with ...
-2
votes
1answer
280 views

Starting/Stopping Custom PHP Chat Server Linux Service (CentOS)

I have been trying all night to get this service working properly. I created this script from a template and am very new to bash coding. I wrote a fully functioning chat server in php which runs ...
-2
votes
1answer
84 views

Possible to run commands in a screen through cron jobs?

I currently have an application running in a screen. I would like to run some commands in the screen through a cron job but would like to know if this is possible. Using CentOS