screen使用問題、再attach失敗:There is no screen to be resumed matching***
reatach 1つのセッション:メソッド1:
or:
以上ができない場合、セッションは再attachできません.すなわち、screen-r IDが失敗しました.原文リンクfigure out which tty is holding on to the screen session by typing into terminal
result of this should be something like testdev 5170 5572 0 12:31 ttyp 1 00:00:00:00 screen-r 1234.somescreensessionは、screen-lsに対応するpid、例えば5170を見つけることができ、親プロセスidが5572であることがわかります.
holdingセッションのbashのpidを見つけて、in this case the tty is 5572、use this to find the login bash that is associated with that tty:
そしてkill it:
screen reattachに関するいくつかのコマンド:
ああ、家の小さな工場で、席を占めています.http://www.herofireworks.com/
screen -xr 5170.pts-21.hostname
-x
: Attach to a not detached screen session. (Multi display mode). or:
screen -d -r 5170.pts-21.hostname
screen -D -r 5170.pts-21.hostname
-d -r
: Reattach a session and if necessary detach it first. -D -r
: Reattach a session. If necessary detach and logout remotely first. 以上ができない場合、セッションは再attachできません.すなわち、screen-r IDが失敗しました.原文リンクfigure out which tty is holding on to the screen session by typing into terminal
ps -ef | grep screen
result of this should be something like testdev 5170 5572 0 12:31 ttyp 1 00:00:00:00 screen-r 1234.somescreensessionは、screen-lsに対応するpid、例えば5170を見つけることができ、親プロセスidが5572であることがわかります.
holdingセッションのbashのpidを見つけて、in this case the tty is 5572、use this to find the login bash that is associated with that tty:
ps -ef | grep bash | grep 5572
そしてkill it:
kill 5572
screen reattachに関するいくつかのコマンド:
-d|-D [pid.tty.host]
does not start screen, but detaches the elsewhere running screen session. It has the same effect as typing “C-a d” from screen’s controlling terminal. -D is the equivalent to the power detach key. If no session can be detached, this option is ignored. In combination with the -r/-R option more powerful effects can be achieved: -d -r
Reattach a session and if necessary detach it first. -d -R
Reattach a session and if necessary detach or even create it first. -d -RR
Reattach a session and if necessary detach or create it. Use the first session if more than one session is available. -D -r
Reattach a session. If necessary detach and logout remotely first. -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. This is the author’s favorite. -D -RR
Attach here and now. Whatever that means, just do it. ああ、家の小さな工場で、席を占めています.http://www.herofireworks.com/