Tagged Questions
0
votes
1answer
37 views
Copying and pasting on my local machine from the command line (nested screen workflow) [closed]
This is a workflow question. I commonly find myself sshing to machines, running commands, getting output and copying that output to the local clipboard. I am using gnome-terminal for my terminal ...
-5
votes
1answer
43 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 ...
1
vote
0answers
38 views
How to restrict user to a single screen session in a multiuser environment? [closed]
I have created a multiuser screen session and did 'addacl user1'. Now user1 can join the screen session via command like 'screen -x /screen-name' .
Is it possible to prevent this user (user1) from ...
0
votes
2answers
55 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
53 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
46 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
94 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
64 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
107 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
51 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
69 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
138 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 ...
3
votes
2answers
197 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 ...
2
votes
1answer
99 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
116 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
105 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
156 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
191 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
119 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
232 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
2k 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
91 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
152 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
501 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
359 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 ...
9
votes
2answers
2k 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
243 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
441 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 ...
2
votes
4answers
3k 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
1k 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
200 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
101 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
405 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
611 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
196 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
275 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
85 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 ...
9
votes
2answers
4k 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
165 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
717 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 ...
1
vote
2answers
1k views
How to automate starting a multiuser screen session with adding acl to another user?
I often start a screen session, issue a ":multiuser on" command and then ":acladd someuser".
Is there some way to get with a single shell command a screen session to start with these two commands ...
4
votes
2answers
249 views
Can I create and manipulate unix “screens” in a script?
I have a work environment on my Ubuntu laptop in which I want to use three different screens.
Eg. in terminal, I usually write
screen -S mywork
run_server_1
then, ctrl-a c to create a second ...
2
votes
2answers
597 views
Wrap current session in a screen session
I started an big operation, but I didn't start a screen session, So i can't disconnect without canceling the operation.
Is there a way to inject screen so that the operation continues and sends its ...
6
votes
2answers
305 views
How to know who is conected to my screen and where on the screen he is?
I use screen, and sometimes I'm forced to share it. How I can manage the active connections to my screen?
I would like to monitor connections and users connected, where they are and what they do. ...
2
votes
1answer
440 views
unix screen logging change filename to window name
I know its possible to change the name of the logfile with "set filename"
I'd like to have screen write its log files to the name of the window. how can I accomplish this ?
2
votes
3answers
596 views
How to use cursor keys in vi under screen?
If you run vi/vim in screen, when you press a cursor in insert mode, you get a new line + a character, which is a pain.
Configure vim to move around instead.
2
votes
2answers
340 views
SCREEN setup tips
How do you use the "screen" tool ?
I'm looking for best practices and config tips :
To keep clean and ordered sessions on several servers
To have a beautiful colored interface
To have a fully ...
4
votes
4answers
7k views
Create screen and run command without attaching
I am working on automating a maintenance routine that involves starting and stopping a script that is running in a screen session. My approach is to kill the screen session, and then restart it and ...
