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
1answer
12 views

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 ...
0
votes
0answers
3 views

screen with urxvt keybindings [migrated]

I promise I've been searching thoroughly for an answer... So, my goal is to emulate the standard urxvt "tabbed" behaviour with screen keybinds, i.e. map three keybinds and that's ctrl+left (prev), ...
0
votes
0answers
27 views

Screenshot of screen (linux) [migrated]

Is there a way to take a "screenshot" of linux screen command. In other words can "screen -r" command to be called with the same behaviour as "top -b -n 1" - print contents once and exit. Background ...
-1
votes
1answer
24 views

Install screen on ubuntu 13.04 through .deb from web

I have a server on Rackspace w/ Ubuntu 13.04 (raring) that no longer has access to install packages through apt-get. Err http://mirror.rackspace.com/ubuntu/ raring/main screen amd64 4.0.3-14ubuntu9 ...
0
votes
1answer
24 views

How do I bind a key to a macro in GNU screen from the command line?

The GNU screen utility has a neat feature for binding keys to screen commands or macros. The stuff command is particularly handy to expand some abbreviation to some other string as your typing. For ...
0
votes
1answer
91 views

Asterisk Sip Server and “Screen Sharing” function

I'am newbie in asterisk, i followed the tutorials on the asterisk wiki, and installed the latest version (13) of the asterisk server. I was able to setup the voip now i wonder, there is a function im ...
2
votes
2answers
73 views

screen -R not working with ssh

I have a linux box in the office I want to ssh into from my Macbook at home. I can’t reach the box directly on port 22, but I have a port tunnel nailed up between localhost:23001 and port 22 on the ...
0
votes
0answers
24 views

Convenient way to restart server inside vagrant

We have a webserver, that needs nginx and other configurations, so for development we use vagrant. vagrant ssh I want to easily [re]start it, so I use single line ssh commands. vagrant ssh -c "" ...
1
vote
2answers
172 views

screen command process id

First of all sorry for my bad english and i am new at linux. When i do this, it can write process id to pid file start () { echo -n "Starting someserver.jar: " java -jar ...
3
votes
1answer
124 views

screen: how do I move a window in between 2 other windows

In screen is there a way to put a window in between 2 others instead of swapping? Here is what I have 1 - I want this to become #2 2 - I want this to become #3 3 - I want this to become #1 If I go ...
1
vote
1answer
134 views

Debugging frozen Gnu screen session?

We've been using GNU screen on our jump box to have ssh sessions open to multiple hosts within our private network. One window per host. Recently we've built a new environment and are experiencing ...
0
votes
1answer
152 views

Execute a service as a specific user under ubuntu

I'm running a gameserver and want to start it on a screen on system start, but screen is user specific, so I have to run the command as 'user'. So I wrote this short service script which starts itself ...
0
votes
2answers
49 views

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

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

Unable to redirect STDOUT in a remote screen session via SSH

I would like to execute a long-running command via SSH/screen and have the output redirected to a file. I'm able to run the command fine (similar to this question), but the output never shows up. ...
5
votes
1answer
294 views

screen causes “tail -F | grep” to echo unmatched lines

This is Ubuntu (3.13.0-29-generic #53), trying to do a simple bash script to monitor a log file for matching lines. If I do the following, there is no output in the bash shell except for matches, ...
1
vote
1answer
159 views

No hangup signal by default [duplicate]

I have a server running ubuntu server. It is behind a proxy...I don't know if that makes a difference. But I have found that a couple of processes I've tried, get terminated when I log out of the SSH ...
3
votes
1answer
67 views

screen in screen, detach only last one

I have strange issue on my hands. I have opened (GNU) screen for one serial console and in that same console I have opened another screen to another serial console. It was working but I am now ...
0
votes
1answer
26 views

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 ...
2
votes
1answer
41 views

Is it possible to set a max amount of screens that can be running at once?

I'd like to know is it possible to set a max amount of screens that could be running at once on screenrc? Thanks
1
vote
1answer
66 views

Whic Command I Runnning Inside a 'screen'?

I have logged in in a server.Then issued the "screen -list" command which gives the following output - There is a screen on: 11048.pts-0.devops (Detached) 27563.pst-0.devops (Detached) 1 ...
-6
votes
1answer
203 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
1answer
159 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
43 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 ...
3
votes
1answer
616 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
45 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
195 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 ...
8
votes
2answers
4k 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
113 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 ...
2
votes
2answers
114 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
26 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
91 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
129 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
520 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
370 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
129 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
49 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
1k 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 ...
5
votes
1answer
194 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
412 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
52 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
53 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
145 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
85 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
107 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
245 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
131 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
110 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
144 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
1k 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 ...