1
vote
2answers
373 views

How can I start new window in the same screen session automatically?

I read How can I start multiple screen sessions automatically?, but I don't understand the first accepted reply: screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" In my case I need to ...
1
vote
2answers
99 views

Detect if the display is valid in Linux

Is there a way to detect if the display is valid in a controlled way? For example if I set $DISPLAY=anydisplay or $DISPLAY=0.0, is there a way to check if anydisplay or 0.0 is a valid display which I ...
0
votes
1answer
200 views

howto change screen hardstatus dynamically with format, from shell?

howto change screen hardstatus dynamically with format, from shell ? I successfully configured screen using 256 colors and tabs and so on, here is my .screenrc : http://pastebin.com/g8XbMWBH I use ...
1
vote
1answer
43 views

How to “share” a screen session?

Is it possible to start a screen session and have some other process attach to it without having the original process detaching it? Like two terminal windows seeing the same, for example.
1
vote
1answer
352 views

Vim clobbering scrollback buffer outside of screen

If I'm not in a screen session, then when exiting Vim I get a bash prompt below the remnants of the VIM window. A side effect of this is that my scrollback buffer is clobbered, especially if I have ...
3
votes
2answers
2k views

What is the default password of screen?

When I type Ctrl-X X (sic) in screen, the session is locked. What is the default password? Is it the same password which I use to log in to linux? I ask because: I connect to several different remote ...
2
votes
2answers
359 views

unexpected behaviour of Ctrl-a x and Ctrl-a X in screen?! regions, locking

According to the screen manual (version 4.0.2.) C-a x C-a C-x (lockscreen) Lock this terminal. C-a X (remove) Kill the current region. But what actually happens when I use it ...
0
votes
1answer
601 views

Exporting DISPLAY variable not working

I am able to assign the DISPLAY variable by running the command line: export DISPLAY=:2 echo $DISPLAY (returns 2) hostname (returns opt2) In my #!/bin/bash script using the same command: echo ...
3
votes
1answer
2k views

Preventing session timeout via ssh/bash/screen/etc?

On this particular server, it seems that it's configured somehow to close a session if there is no activity after a few minutes. I'm looking for a good way to prevent it from timing out via my setup ...
0
votes
1answer
202 views

Shell doesn't display input characters after “tail -f”

I use "tail -f" to monitor log files. After interrupted by ctrl-c, the shell doesn't display my input chars from keyboard any more. Something like terminal> tail -f /log/a.log then ctrl-c ...