3
votes
1answer
49 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 ...
1
vote
1answer
40 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 ...
0
votes
1answer
89 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 ...
-4
votes
4answers
58 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 ...
0
votes
3answers
106 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 ...
0
votes
2answers
231 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 ...
1
vote
1answer
74 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 ...
2
votes
2answers
114 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 ...
1
vote
1answer
76 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 ...
-3
votes
1answer
97 views

GNU screen, tmux, dvtm - none are working as ordinary user on OVH VPS [closed]

I bought cheapest vps for teamspeak hosting and I have strange issues with demonizing it's process. None of screen tmux and dvtm work for ordinary user, but they work witout a charm for root. As far ...
-5
votes
1answer
56 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
2answers
96 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
329 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 ...
0
votes
1answer
74 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
151 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? ...
-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
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
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 ...
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 ...
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 ...
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. ...
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 ...
0
votes
2answers
575 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 ...
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?
2
votes
3answers
273 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 ...
4
votes
2answers
938 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
790 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 ...
18
votes
2answers
4k 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 ...
1
vote
1answer
279 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
592 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 ...
3
votes
1answer
1k 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 ...
3
votes
4answers
5k 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
2k 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
2answers
214 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 ...
3
votes
1answer
149 views

send interrupt to window in screen

How can I send a interrupt to a window within screen. I have screen running with several windows. Each of the windows have processes running within them. I wish to be able to send and interrupt to ...
0
votes
2answers
612 views

How can I go back in the (GNU) screen command history? (NOT shell command history!)

Currently, when I enter ^a : (control-A followed by ':') to send a command to GNU screen, I can go back one step in the history, and see exactly ONE previous command. This is really annoying, as I'm ...
1
vote
5answers
826 views

Using screen to monitor non-interactive scripts (or some other solution)

I have some autonomous scripts that run commands on remote machines over ssh. These scripts rely on getting stdout, stderr, and the return code of each command run. I want to be able to monitor the ...
3
votes
3answers
212 views

Lock down a linux system with screen

I need to lock down a system so that a group of individuals can log into the server via ssh. When they log into ssh I would like them to be presented with a screen session and locked down to that ...
0
votes
1answer
312 views

Linux Screen; How do I make screen persistent with the -X command?

I'm running screen with the following command: screen -dms -X buildscript.py This executes the buildscript.py file and runs it as a daemon. Now, when the build script fails, screen automatically ...
1
vote
2answers
87 views

Prevent Screen from creating sub shells

I'm running a Linux system that starts a custom text mode application from the .bashrc. The users are getting disconnected due to network dropouts. I had the idea that I'd use screen to allow them to ...
16
votes
3answers
9k views

Can I send some text to the STDIN of an active process running in a screen session?

I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the ...
3
votes
1answer
2k views

Password for GNU screen lockscreen command?

I have set a password for screen sessions in my .screenrc. It works great, any time I need to re-attach to a screen session I need to enter the password. There is another feature where you can ...
0
votes
2answers
199 views

Is there a way to block screen's multi display mode (-x) completely?

I'd like to configure screen to only allow attaching to detached sessions and not to attached sessions, even if they're from the same user. Is there a way to accomplish this? I couldn't find anything ...
2
votes
2answers
1k views

Terminal Width issues with Linux Screen

I'm having issues where when I'm in a regular SSH terminal, with $TERM set to xterm-256color, and the terminal width is very small (narrow) in Linux Screen. I'm running Arch Linux. When I'm in the ...