2010/11/22 jonnexen <jonne...@googlemail.com>:
> Hello,
>
> I'm gonna writing a bash install-script. There I want to make a command that
> checks if screen us running. If it's running the script should be going on.
> If not there should be an error. Any ideas?
>

if [  -n "$(screen -ls | grep 'screen on')"  ]; then
   echo "screen is running"
else
   echo "screen is off"
fi

Regards,

-- 
Facundo Andrés Bianco (Vando.)
GNUPG ID: 0x89C1B42F
omb: identi.ca/vando
ASCIIribbon.org Campaign - Against HTML email

_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to