How to list running screen sessions?

后端 未结 9 1283
执笔经年
执笔经年 2020-12-12 10:10

I have a bunch of servers, on which I run experiments using screen. The procedure is the following :

  1. ssh to server XXX
  2. launc
相关标签:
9条回答
  • 2020-12-12 10:52

    The command screen -list may be what you want.

    See the man

    0 讨论(0)
  • 2020-12-12 10:54

    ps x | grep SCREEN

    to see what is that screen running in case you used the command

    screen -A -m -d php make_something.php

    0 讨论(0)
  • 2020-12-12 10:55

    While joshperry's answer is correct, I find very annoying that it does not tell you the screen name (the one you set with -t option), that is actually what you use to identify a session. (not his fault, of course, that's a screen's flaw)

    That's why I instead use a script such as this: ps auxw|grep -i screen|grep -v grep

    0 讨论(0)
提交回复
热议问题