3
votes
1answer
107 views

Init script leaves thousands of defunct processes

My problem is that I have an init script that is generating thousands of defunct bash processes. My goal is to have a program called "fr24feed" in its own screen session on boot. After looking at ...
2
votes
1answer
310 views

Send command to detached screen and get the output

I've been searching to find a way to send a command to a detached screen session. So far, so good. This is what I've come up with: $ screen -S test -p 0 -X stuff 'command\n' This command works as ...
5
votes
1answer
84 views

Export content of screen daemon to file

I'd like to export the content of a detached screen under linux. I tried those command: screen -x 2>&1 > temp screen -x > temp 2>&1 screen -x > temp But it's not working, It ...
1
vote
2answers
1k views

How do I kill all screens?

I accidentally created over 1000 screens. How do I kill them all with one command? (Or a few)
3
votes
1answer
200 views

Tmux: equivalent command to screen -d -m -S session_name

I'm looking at replacing screen with tmux, currently I use this screen command: screen -d -m -S session_name /root/script Is there an equivalent command for tmux that will do the same thing?
1
vote
1answer
229 views

GNU screen startup is really slow

I connect to a RHEL 5.7 server via Putty or VNC (not sure it matters) but when I try to run screen, it takes forever (on order of 20-30 secs). Same thing if I run screen -ls, takes just as long. I ...
1
vote
2answers
63 views

Grab text from detached screen [duplicate]

I am working on a collectd plugin to monitor a program I have running in a detached screen session. This program constantly updates the terminal with its status by replacing its old status (similar to ...
0
votes
0answers
371 views

running matlab command line in screen — can't type after reattaching

I'm logging in via ssh to a more powerful computer, on this I start a screen session with screen -S mine and then open a matlab command line via matlab -nodesktop -nodplash and then run within matlab ...
1
vote
1answer
92 views

After running screen, screen doesn't seem to be running

I use ssh to log into a remote machine and then I use the screen command to create a virtual screen. Now, if I type in exit normally I should only exit the screen and return to the remote ssh ...
1
vote
2answers
275 views

How to run linux process and come back to it later?

I'm trying to run a minecraft server on linux. Running the server starts an important interactive session. I can run the server in the background by appending & at the end of the command and log ...
4
votes
1answer
2k views

How to allow Page Up in GNU Screen?

I use Vim to edit text files on Linux. Commonly I connect to remote Linux machines using PuTTY from Windows. I use GNU Screen commonly as well. When using Vim inside Screen I am unable to use the ...
4
votes
2answers
1k views

Buffer overrun on Fedora 16 serial

I got a brain smashing problem with Fedora 16 and my serial port. I use the serial to monitor an STB on which I'm developping. The STB runs on Linux and when booted, I launch the program I'm working ...
2
votes
1answer
2k views

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

[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 ...
19
votes
3answers
5k views

Shell: how to go to the beginning of line when you are inside a screen?

I am inside a screen (screen -Ra). I have a long command, and I am at the end. Instead of keeping the left arrow, how can you go to the beginning of the line? CTRL-A works when I am in a normal ...
3
votes
1answer
460 views

How can I run byobu from xterm at starting?

I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ? (mate-terminal from Linux mint especially)
1
vote
2answers
104 views

How can I change the default action of C-a in screen to just a backtick `?

I tried something like escape ^` But that did not do it? I just want to change the default ctrl-a behavior. Also, is it possible to bind each numeric key (1, 2, 3, 4, 5) to change those specific ...
3
votes
1answer
596 views

Change screen “hardstatus” color dynamically

I show the hard-disk free space in hardstatus screen. But also I want change the color of this value when it's less than a value to alert me. I have done a script that it checks this and it returns a ...
9
votes
3answers
8k views

sending text input to a detached screen

I'm trying to run a minecraft server on my unRAID server. The server will run in the shell, and then sit there waiting for input. To stop it, I need to type 'stop' and press enter, and then it'll ...
2
votes
1answer
201 views

clear(1) after detach in GNU screen

I run irssi in screen and I want screen to automatically blank the terminal (scrollback) after detach. I found out that screen has a command called "blanker" that can clear the screen, but I don't ...