Move a screen session back to its original PID
Posted
by
cron410
on Server Fault
See other posts from Server Fault
or by cron410
Published on 2012-12-03T04:38:43Z
Indexed on
2012/12/03
5:12 UTC
Read the original article
Hit count: 263
Installed McMyAdmin (minecraft manager) on Ubuntu 12.04 32 bit. Wrote my own service to start McMyAdmin (.net app running in Mono) in its own screen session, and be able to inject proper McMyAdmin commands into that session with the init.d script. Its been running great!
Today, I decided to start installing a Source dedicated server (counterstrike pro mod) I determine its going to be a long download process so I quit the process and fire up a fresh screen session called "source".
I paste the command in, but it has a space at the begining and bash complains of ignoring semaphores or some such.
I detach and reattach the session. Its sliding like butter.
I ctrl+a-d out of the session and start exploring the new folder structure and figure out where I need to place a symbolic link.
I go to resume that screen and this is what I see:
$screen -r source
There are several suitable screens on
20091.source (12/02/12 22:59:53) (Detached) 19972.source (12/02/12 22:57:31) (Detached) 917.minecraft (11/30/12 15:30:37) (Attached)
It appears I am connected to the minecraft screen?!?!?! So I attach to the other screens one at a time.
minecraft is running in 19972.source and sourceds is running in 20091.source
So how the hell did I move the minecraft process to another session called source and my main terminal is now "attached" to the minecraft screen?
more:
I just used exit to quit the putty session, then logged back in, its still the same. did that 3 more times and now the minecraft screen is gone and everything is acting as it should except, of course, for the session name and start time of the "new" minecraft screen.
Should I just submit this as a bug for GNU screen?
© Server Fault or respective owner