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
votes
2answers
282 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
315 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
398 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
89 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
346 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
91 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
128 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
154 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
92 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
54 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
821 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
578 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
113 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
190 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 ...
5
votes
2answers
714 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
240 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
148 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
171 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
245 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
156 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
149 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
285 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
1answer
309 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
97 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
154 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 ...
1
vote
1answer
306 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
57 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
608 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
970 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
59 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
336 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
202 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
128 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
368 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
319 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
0
votes
2answers
576 views

Using PHP to restart a process running within a screen

I have some server software running within a screen on a Linux (Debian if that matters) server. Every now and then I need to input some commands to the process so I want to keep it in the screen for ...
3
votes
2answers
3k views

Share screen session with users in the same group (Linux)

I can create a detached screen session using the following command: [user1@host-pc ~]$ screen -d -m -S sname program ...and resume to it using this command: [user1@host-pc ~]$ screen -r sname Is ...
4
votes
2answers
2k views

Putty + Bash + Screen, up arrow for history not working (Ubuntu 11.10)

I have a fresh install of Ubuntu Server 11.10 that I am logging into SSH via PuTTy. When I am inside screen, I cannot use the up arrow to recall bash history (though this works outside of screen). I ...
2
votes
2answers
85 views

Restart screen in screen session

Similarly to this question about restarting ssh when ssh is the only mode of connection to a server, what happens if I aptitude upgrade screen inside a screen session?
1
vote
1answer
103 views

Reconnect to screen and preserve splits

Is it possible to reconnect to a disconnected screen session and preserve the screen splits?
0
votes
2answers
184 views

Running php inside screen with parameters?

i am running a php file that takes up to 2-4 hours to run, and because my internet is so bad i will need to run it inside a linux server (screen). My question is: How can i run php file inside screen ...
3
votes
1answer
88 views

customizing terminal ssh shell [closed]

The other day I saw someone connected to an ssh shell with status bars on the bottom (Mac OS X Terminal) of the terminal. It has things such as upload rate, memory usage, time, current username, and ...
1
vote
1answer
491 views

ulimit permissions are hard set directly from a screen instance. How can this be fixed?

At best I can describe this issue with a shell session: This shows that ulimit works fine. This is the start of a normal ssh session: $>ulimit -c 0 (ushanka:973:0) ~ $>ulimit -c unlimited ...
2
votes
3answers
274 views

How can I run a batch of commands inside one “screen” window?

I'm using screen (LINUX) to run servers or task, but I want to put more than one task in one screen, is it impossible? Like: screen -A -m -d -S test_screen userdel -r user_test && useradd -m ...
0
votes
4answers
400 views

Continually check to make sure php script is running

Is it possible to configure my CentOS VPS to continually check to make sure that a php script is running? Currently I'm using the screen php method which works fine, but if it gets terminated somehow, ...
0
votes
2answers
562 views

256 Color Issue when using GNU Screen inside GNU Screen

When I have a SSH session in GNU Screen to another machine on which I'm also using GNU Screen, 256 colors don't seem to work. The $TERM is still set correctly. However, if I run Vim, the theme does ...