Determining if a screen session is already running
Code:
[cam0@beastlinux ~]$ screen -ls |
ps ax | grep screen
|
To some degree, I think it depends whether you need to determine whether screen is running, or whether a specific screen session is running. Clearly your version of screen doesn't provide any help via the return value. Your recourse then is to parse the output of 'screen -ls'. What kind of parsing you do would be reflected in your objectives. A simple version might be:
Code:
screen -ls | grep 'No Sockets' --- rod. |
Quote:
screen -x or screen -x user/ works just fine. Thanks for the tip of checking with grep. |
All times are GMT -5. The time now is 12:33 PM. |