screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. GNU screen official page: downloads and documentation; screen command reference; introductory article from kuro5hin.org, GNU Screen: an introduction ...
1
vote
2answers
55 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
1answer
55 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
2answers
26 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
0answers
32 views
What is the right syntax to enable logging in gnu screen?
I have set up a screen rc file like this:
log on
shelltitle apt
logfile $HOME/configs/screen/screenlogs/apt.log
logtstamp after 120
and I am starting like this:
screen -c ~/configs/screen/apt.rc
...
0
votes
1answer
90 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. ...
2
votes
1answer
33 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
59 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 ...
0
votes
1answer
57 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
33 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 ...
3
votes
2answers
217 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?
0
votes
1answer
40 views
screen and create multiple windows in
I have a little problem with screen.
I want to launch severals servers in a screen session, so I did a little script:
#!/bin/sh
screen -dmS servers
screen -S servers -t http -p 0 sh -c "cd ...
1
vote
1answer
108 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
0answers
83 views
SBS 2008 Dead Screen and Remote Desktop
We have an SBS 2008 server which has recently started behaving badly. At first we thought it was a memory issue, but we've since stopped all SharePoint services and we're left with Exchange and SQL on ...
0
votes
0answers
72 views
Irssi + Screen, timeouts/freezes
First of all sorry if this is not the right place to ask this, but I wish someone here could shed light on my problem:
I am running Irssi in screen, and if I don't activate the window every now and ...
0
votes
1answer
41 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
123 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
162 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
63 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
82 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
78 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
93 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
49 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 ...
2
votes
2answers
203 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
387 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
54 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
60 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
57 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 ...
0
votes
0answers
87 views
key mapping (superkey) over gnu screen or tmux
Here's what I want to do:
In these examples the Window Key/SuperKey = %
% S open up a terminal with screen enabled
% = Create a new screen
% - Remove current screen
% . Go to the next screen
% , ...
4
votes
1answer
63 views
customizing terminal ssh shell
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
134 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
73 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
98 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
186 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 ...
2
votes
2answers
189 views
Why can't I attach a screen session
I've got a screen session running which I would like to :quit, but I can't because when I try to re-attach, I get an error saying it can't open my terminal. I'm sure I could kill the daemon or ...
0
votes
1answer
240 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
1answer
94 views
Can't type in commands after reattching to a screen session
Using CentOS 5, I have a screen session running and I often reattach to it after a day or two with the usual:
screen -r <sockname>
The session reattaches fine, and runs fine (I can see output ...
2
votes
2answers
70 views
screen not dropping down a line?
Minor annoyance with the Screen linux utility; when connected to a Linux (Fedora) box from my Mac (using Terminal), when I'm writing out a long command, usually when the text reaches the edge of the ...
0
votes
1answer
64 views
Ubuntu using screen to control a Java server
I have a shell script that makes a backup of my server files before starting it. However I wish it to instead of just running it open a new screen session and then start it from there. Once its ...
2
votes
1answer
192 views
I cannot use screen stuff command from cron, but I can from a shell script (same user)
I have a shell script on FreeBSD that sends a few screen stuff commands to a running screen session (which runs a Minecraft server). The commands work when I execute it manually.
But if I put the ...
3
votes
3answers
174 views
How can I return to nohup after logout?
I'm working on an AIX and cannot install screen but want to use its capabilities. Basically I want to be able to run a session (maybe logout), then the same user but logged in again to be able to get ...
1
vote
2answers
92 views
Send input to all screen windows
Is there a command in screen to replicate a command to every window? I'd like to send something such as 'reboot' to every window at once. Is this possible?
I've seen talk about the 'at' command via ...
4
votes
3answers
587 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 ...
4
votes
1answer
94 views
How to “Open a new window in GNU/Screen” by running a command?
I want to know how to accomplish this: Open a new window in GNU/screen, by running a command.
Here's what I want to do:
I uses GNU/screen daily. My laptop runs in UTF-8 locale, and I need to ssh to ...
4
votes
3answers
311 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.
5
votes
2answers
866 views
Why does redirecting 'script' to /dev/null/ allow 'screen' to work while su'ed as another user?
I was su'ed into a user to run a particular long running script. I wanted to use screen but I got the error message "Cannot open your terminal '/dev/pts/4' - please check."
So I Googled around and ...
0
votes
3answers
229 views
juniper screen os and akamai
Need to setup a policy on juniper netscreen firewall that would allow access to a content hosted by akamai. There are two options: to use an IP address or hostname. Using hostname does not work with ...
1
vote
1answer
158 views
embedded linux serial terminal
I have built a custom embedded system using debian 6.0.
using /etc/inittab i have made several (8) processes running on different /dev/ttyX terminals, which i can switch between using Alt+FX key ...
2
votes
4answers
288 views
Should I update the kernel on a Linux machine?
As I understand it, updating to a new kernel (with the normal linux-image... package, not by rolling my own) requires a server restart.
However, one of our servers (Ubuntu 10.04) is running several ...
1
vote
2answers
340 views
Specifying a log name for screen output without relying on .screenrc
In a bash script, I use "screen -L" to log executed commands in color. For example :
screen -L tree
Then we read logfile with less -R.
When this script is executed, other screens are ...
0
votes
3answers
188 views
Can't SSH through screen
I have set up hosts.allow on the remote Arch Linux server as follows:
sshd: ALL: ALLOW
while hosts.deny is set to:
ALL: ALL
I have no problems using SSH through Cygwin (with a Corkscrew tunnel ...