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

1
vote
1answer
214 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
328 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
57 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
300 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
99 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
392 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
2k 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
77 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
107 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
162 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
312 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
357 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
436 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
99 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
1
vote
1answer
408 views

Screen. Turn on logging(like -L) by screenrc

Which option in screenrc working like "screen -L"? I want turn on logging globaly. Try option "log on" into /etc/screenrc, but write "log: window required" when screen startup.
2
votes
1answer
104 views

Screen tail -f window closes immediately

I have this in my ~/.screenrc file: startup_message off screen -t top 0 top screen -t log 2 tail -f /path/to/application/log/* screen -t action 1 #caption always "%?%F%{.R.}%?%3n %t%? [%h]%?" ...
9
votes
2answers
139 views

Is it possible in a script to tell if it is being run from within GNU screen?

We have a long running process on a remote server which is kicked off manually from time to time. Unfortunately internet connections die, kernels panic and a whole host of other challenges can be ...
1
vote
2answers
178 views

using screen in another user with su

So, if i do this: su -c 'screen -dmS screenname script to run' - user to run as It won't work. The screen command is working if excecuted from root, so there is no problem there. If I do: su - ...
1
vote
1answer
94 views

Start Daemonised GNU Screen from script a allow calling script to end

I have a script on an embedded device that calls screen to start if a user logs in via a ssh session... #!/bin/sh SCREENRUNNING=`pgrep SCREEN` if [ -z "$SCREENRUNNING" ]; then echo "Screen not ...
2
votes
2answers
55 views

Screen session only limited to 8?

I have a shell script as following #!/bin/sh screen -d -m -S script1 /usr/bin/ruby script1.rb; true screen -d -m -S script2 /usr/bin/ruby script2.rb; true screen -d -m -S script3 /usr/bin/ruby ...
1
vote
1answer
873 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 ...
-1
votes
2answers
632 views

No bell! I don't want ANY bell! Screen on Ubuntu 12.04 [closed]

Visual AND audio bells are incredibly annoying. I DON'T CARE that I hit backspace 3 times when there were only 2 characters in the terminal! I KNOW you can't tab-autocomplete because I can see that ...
1
vote
1answer
124 views

why there are three(it should be two) process related to screen when using ps command?

you can see there are three processes which are related to screen command: [world]$ ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND hugemeow 28938 0.0 0.0 66080 ...
-2
votes
1answer
199 views

I can't detach from my screen (Linux-ubuntu) [closed]

I have a major problem. I screened a program, but i cannot detach from it. Ctrl+a Ctrl+d just don't do anything. They will be displayed as ^A or ^D , which is really annoying. I cannot Ctrl+a ...
2
votes
2answers
2k views

Screen - No more PTYs - Cannot start screen's on Debian VPS

I've gotten a newly imaged Debian 6 32 bit VPS. While configuring I tried to test screen as a number of my scripts run using it. Root has no problem running screen. But of course this is ...
6
votes
2answers
1k views

Start detached screen session

I would like to start screen detached session, but I want to evaluate some bash. It seems screen only supports an executable and binary. I want do do some magic like: screen -d -m script.sh ...
3
votes
1answer
279 views

Unlock screen for ec2-user

I accidently locked screen under ec2-user (pressed C-a C-x). As far as I know ec2-user has no password. Now I'm prompted for password to unlock. I do not want to terminate the process running under ...
2
votes
1answer
162 views

kill screen session in an expect script

I start my screen connection with a spawn command within an expect script: spawn screen /dev/... But I don't know how I can kill the screen when the script is finished
2
votes
1answer
204 views

Start a screen through svcadm with Solaris 11

I am running into a problem when trying to start a detached screen through a Solaris 11 service. This service controls nginx. When I reboot the system, the screen doesn't start, but if I issue ...
-3
votes
2answers
290 views

Scroll up while in screen

When I use screen command, I am not able to use page-up and only 1 page is displayed on the screen. If I do not use "screen" command, I can scroll up a few pages. 1) How do I enable scrolling while ...
1
vote
2answers
169 views

Linux Redhat “Screen” won't detach

I've got a screen set up, I access it like this 'screen -r' it works fine, but when I go to put it in the background, I've previously used 'Ctrl a+d' but every time I try that now it puts '^A' in ...
1
vote
2answers
157 views

Can I force a screen session on a user?

How can I watch another user's shell session? I'd like to evaluate another user's behavior. I'm looking into using screen, but I don't know how to force his terminal to start a screen session. Is ...
2
votes
2answers
107 views

Neverending screen.

My goal is to start bunch of processes from bash in screen but screen should not terminate after the process running in it ends or stops with error. So im going to do someting like: do a config file ...
0
votes
3answers
301 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 ...
1
vote
1answer
350 views

Applying memory limits to screen sessions

You can set memory usage limits for standard Linux applications in: /etc/security/limits.conf Unfortunately, I previously thought these limits only apply to user applications and not system services. ...
3
votes
1answer
107 views

ssh agent authorization in a detached screen session

I have an ssh script which use ssh key forwarding on a remote system to do thing in even more remote systems. I have to run the script in a screen session so that I can detach from it. But the ...
1
vote
2answers
165 views

Starting a screen while su'ed into another user from an alias isn't working

minecraft@283823:~$ script /dev/null ; screen -t minecraft Script started, file is /dev/null minecraft@283823:~$ exit Script done, file is /dev/null Cannot open your terminal '/dev/pts/0' - please ...
2
votes
1answer
335 views

freeze and thaw tmux and/or terminal sessions?

I would like to be able to freeze and thaw tmux sessions. That is, to take a complex set of session state, persist it, and bring it back from some persistent store later. Essentially, git stash for ...
4
votes
2answers
59 views

screen -r spawning new prosses

I'm new to screen and I'm trying to figure out how to detach from a session and reattach later. So far I've tried: $screen C-a z (within screen to detach) $screen -r So far so good but when I C-a z ...
9
votes
2answers
3k views

How do you get TERM=screen-256color on CentOS 5.7?

CentOS 6.0 comes with the ability to set its TERM to screen-256color. It doesn't work in CentOS 5.7, though. How can you get CentOS 5.7 to support screen-256color?
1
vote
1answer
706 views

How do I script screen to create multiple windows?

I have a little problem with screen. I wanted to launch several servers in a screen session, so I made a little script designed to to have one server per window. #!/bin/sh screen -dmS servers screen ...
1
vote
1answer
1k views

disabling specific byobu/screen keybindings that conflict with vim keybindings

ctrl + a under byobu has either emacs mode or screen mode. However, I need keybindings like ctrl + a for vim's "increment value" method. How would I prevent byobu/screen from blocking certain keyboard ...
0
votes
1answer
62 views

Discerning which GNU screen window is being used in a shell script

Using a shell script, how can you tell if a screen is running using shell scripts? For example, using pseudocode: IF (screen.screenname.running == TRUE) or something like that.
2
votes
1answer
377 views

screen is not detached

I have a script and use the following command in it: screen -dmS name bash -c "ls -1 > out" What I am trying to achieve is to create a screen session, run a command and detach from it. The ...
0
votes
3answers
209 views

How to get screen command to indicate what screen you're looking at for ubuntu servers?

When I use the screen command in red hat it lists what screen I'm looking at in putty However when I use the screen command in ubuntu 10.04 it doesn't list what screen I'm looking at in putty. Is ...
0
votes
2answers
130 views

Creating a backup script involving screens and java?

Hi guys I use centOS 64bit 5.7 and I need to create a backup script What I want it to do: screen -r example command into java pause for x amount of seconds exit screen zip/rar a folder which and ...
1
vote
2answers
403 views

FreeBSD out of box Screen/TMUX functionality?

Does FreeBSD include capabilities out of box that are similar to Screen or TMUX? If so, what is the utility called? Update: I'd rather not use Screen due to it licensing. TMUX is BSD-3 clause, which ...
1
vote
1answer
109 views

FreeBSD aliased user identification and GNU screen

The situation is the following. I have FreeBSD user M, which is an alias for root, i.e., its UID equals to 0. I have a daemon started as M (as a shell for an autologin console, if it matters). The ...
-1
votes
1answer
330 views

Why is WordPress not working properly? [closed]

A client of ours has the domain http://moneynotes.co.uk/wp, but unfortunately it just shows the page for a second and then shows a blank screen. Why is this? What is missing or what is wrong? James