A way to auto cycle (close) through all screen sessions
Posted
by
JBWhitmore
on Super User
See other posts from Super User
or by JBWhitmore
Published on 2012-09-30T06:17:38Z
Indexed on
2012/09/30
9:40 UTC
Read the original article
Hit count: 244
I frequently use screen when I log into the interactive nodes to a supercomputer that I have access to -- and I often run things and move on. There are about 20 separate nodes that I can log into; and if I check any one of them I'll have something like 4 detached sessions. Each of those sessions will have maybe 5 screen sessions within that.
Is there a quick way to cycle through all of these and close them down if they are not running any processes? My current process is to screen -ls
and then screen -r ####
then type exit
until I'm back to the base screen.
© Super User or respective owner