I have a bunch of servers, on which I run experiments using screen
. The procedure is the following :
ssh
to server XXXThe command screen -list may be what you want.
See the man
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
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