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 came across a forum post that instructed to run $…
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 run the command from within a script using the…
So I'm using GNU Screen to manage multiple running scripts/programs. The multiplexing & detachability is quite helpful.
I removed a script from disk and now I'm having some trouble finding the backup. However, one of the terminal sessions was…
I am using the Screen utility and would like to preserve the session when the machine reboots. If not possible may be you can recommend other alternatives to Screen that would allow to preserve the sessions between reboots.
I am using Ubuntu Server…
Basically I have a remote screen session, which I wish to automatically reattach to.. Currently I'm doing this by with the following command (as an iTerm bookmark, or an alias)
ssh host -t screen -x thesessionname
This works fine, but if the…
Since I use the *nix command screen all day, and I couldn't find anyone starting this question, I figured it should be started. You know the drill: community wiki, one answer per features so we all can vote.
How can screen be used to start a new session and run a command within that session without killing that session?
screen -S myScreenName runSomething
I tried the above command and it says
[screen is terminating]
Did it run the command then kill…
I need to run script, that takes long time to execute, or I just want it to run forever. I can't just SSH to my machine, because when I disconnect it stops running.
Is there any way to run script that isn't dependent on the shell that started…
I have multiple screens running on an Ubuntu server that are initiated as:
screen -dmS screen1 cmd
screen -dmS screen2 cmd
etc...
And I need to kill one screen, but not all of them. What is the correct command to kill a single particular screen…
When I open a new window in GNU screen, it runs .bashrc but not .bash_profile. In my setup, this results in some environment variables not being set up correctly in that window.
How can I tell GNU screen to always run .bash_profile instead of…
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 (command)
should run upon startup.
It runs a shell…
I have previously reattached to a long-running screen session with screen -dr control. However, sometimes this command will not reattach to the screen and instead hang forever (10+ minutes after which I aborted). This only happens when the SSH…
So I have screen compiled with 256 colors, running on Konsole in 256 color mode. If start screen, the TERM is set to "screen". If I manually export the TERM to screen-256color everything works beautifully.
I have two questions. The first is why…
When I run screen it changes my prompt. How do I prevent this behaviour? For example:
$ echo $PS1
\[\e]0;\h:Prod\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$
$ screen
$ echo $PS1
[\u@\h \W]\$
Interestingly, it does not do this on other…
I do the following:
Open Terminal.app
Open a ssh session to a remote Linux server
Open a screen session on the server
Start a program who breaks with many lines of error reporting…
How can I scroll up to read that?
And no, fixing the program is…