我设法以某种方式关闭了一个屏幕窗口,而没有屏幕“注意到”它,因此会话仍标记为attached
。这样可以防止我重新加入此会话。我能做什么?
me@iupr-serv8:~$ screen -r
There are several suitable screens on:
25028.pts-19.XXX-serv8 (01/05/2012 07:15:34 PM) (Attached)
24658.pts-19.XXX-serv8 (01/05/2012 07:11:38 PM) (Detached)
24509.pts-19.XXX-serv8 (01/05/2012 07:10:00 PM) (Detached)
18676.pts-5.XXX-serv8 (01/02/2012 06:55:33 PM) (Attached)
Type "screen [-d] -r [pid.]tty.host" to resume one of them.
me@XXX-serv8:~$ screen -r 25028
There is a screen on:
25028.pts-19.XXX-serv8 (01/05/2012 07:15:33 PM) (Attached)
There is no screen to be resumed matching 25028.
[更新]
最后,我发现该会话没有丢失,但是第一个会话的ID为0
。第二个会话具有ID 1
。
-d -r
选项将强制附加该会话。