Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
29 views

What's the difference between a screen being attached and detached? [migrated]

[blah]$ screen -ls There are screens on: 16517.pts-0.blah (01/28/2012 01:55:32 PM) (Detached) 4345.pts-1.blah (01/27/2012 11:22:48 AM) (Attached) 2 Sockets in ...
0
votes
0answers
8 views

Child processes remain after quitting screen [migrated]

I'm seeing some strange screen behavior on OSX. When I quit screen, child processes are not killed. $ screen $ tail -f (or some long running process inside screen) Then, I kill the current screen ...
2
votes
1answer
101 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
146 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
48 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
52 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
66 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
69 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
36 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
106 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
250 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
45 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
46 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
37 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
52 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 % , ...
3
votes
1answer
54 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
88 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
61 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
76 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
130 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
151 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
170 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
70 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 ...
1
vote
2answers
45 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
58 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
159 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
2answers
130 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
71 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 ...
3
votes
2answers
453 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
86 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 ...
3
votes
3answers
195 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.
4
votes
2answers
565 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
177 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
118 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
229 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
227 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
152 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 ...
0
votes
2answers
204 views

confusion in attaching detaching screen on Ubuntu

screen -list shows There are screens on: 9531.pts-0.ubuntu (03/02/2011 12:43:34 PM) (Detached) 2101.pts-0.ubuntu (03/02/2011 12:39:17 PM) (Attached) 2219.pts-0.ubuntu ...
2
votes
2answers
543 views

How to prevent screen from terminating when command in window terminates

When running 'screen ls' the screen stops with the text [screen is terminating]. I would like screen to keep the session alive and reattach to it to see the output of ls. Of course the real thing is ...
3
votes
1answer
459 views

Screen -X exec commands not working until manually attached

I have a batch script that starts a java server application inside of a screen. The command looks like this: cd /dir/ && screen -A -m -d -S javascreen java -Xms640M -Xmx1024M -jar ...
2
votes
3answers
650 views

How do I use crontab to start a screen session?

I want to create a crontab entry so that it starts screen, starts a gameserver and detaches. This is for in case the server is rebooted and I want it to automatically start this for me. 0 0 0 0 0 ...
4
votes
7answers
679 views

I have a perl script that is supposed to run indefinitely. It's being killed… how do I determine who or what kills it?

I run the perl script in screen (I can log in and check debug output). Nothing in the logic of the script should be capable of killing it quite this dead. I'm one of only two people with access to ...
1
vote
1answer
88 views

Some keys not working under screen in vim

When using vim under screen, some keys are not working. Namely, Pressing Alt-Left produces '3D' and Alt-Right produces '3C' Also, pressing Up/Down when scrolling list of files in Command-T plugin ...
0
votes
1answer
199 views

Howto get exit code of a script started in screen session

I am currently creating a backup script which uses screen to start a backup job with rsync inside a screen session. The backup jobs are started as follows. screen -dmS backup /usr/bin/rsync ... As ...
0
votes
3answers
607 views

VMware ESXi display guest screen instead of console

I'm using ESXi 4.1 for my virtualitzation platform, and I would like to display one of the guests screen to the host VGA output. Is this possible? I want to do this because my host machine is plugged ...
0
votes
1answer
186 views

Determine if tmux has a detached session

Is there a way to check programatically that I have a tmux screen session running? I'd love to be able to write a script that checked for the presence of a tmux session and attach it, or if no session ...
0
votes
3answers
76 views

Screen windows dies

I am using screen with irssi, ssh to some servers. At the moment I have 4 windows "open" in my screen. Two of those windows is "dead". I can't write something in those, for example. How do I "exit" ...
1
vote
3answers
342 views

Remote Desktop Connection Screen is totaly black but server is working perfectly

Server is working perfectly but when I do RDC screen is only black. This happened before and I fixed it by powering off the server via KVM/IP, but I don't want do that again. How can I fix this issue. ...
1
vote
2answers
150 views

GNU Screen: opening each screen buffer in a separate terminal tab

I'm looking for a Linux terminal that is fully integrated with GNU Screen, i.e. mapping each screen buffer to a separate tab and with full scrollback support - all that inside a SSH session. Is this ...
1
vote
1answer
238 views

linux screen question: turn off status tab?

Is there a way in screen to turn off the status bar? Ideally, only display it when I have 2+ tabs open? What .screenrc entries would accomplish this?

1 2 3