Using a shell script, how can you tell if a screen is running using shell scripts?
For example, using pseudocode:
IF (screen.screenname.running == TRUE)
or something like that.
if `screen -ls <screenname> | grep -q "There is a screen on"`; then
echo "<screenname> is running"
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago