GNUスクリーン:スクリーンセッションを確実に再開するには?

GNUスクリーン:スクリーンセッションを確実に再開するには?

今朝、以前のscreen -rセッションを終了した後もscreenセッションを復元できませんでした。

svtbuild@dvm-2:~/rfs$ screen -r 17757.pts-0.dvm-2
There is a screen on:
    17757.pts-0.dvm-2   (11/27/2012 04:49:19 PM)    (Attached)
There is no screen to be resumed matching 17757.pts-0.dvm-2.

回復するまでには少し時間がかかりました。どうすればこれをより確実に実行できますか?

ベストアンサー1

画面のマニュアルページから:

screen -D -R
Attach here and now. In detail this means: If a session is running, then reattach.
If necessary detach and logout remotely first. If it was not running create it
and notify the user.

optionsで述べたように、-D -RRセッションの状態がわからない場合は、を使用して確認する必要がありますscreen -list

おすすめ記事