[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to check if screen is working
From: |
Facundo Andrés Bianco |
Subject: |
Re: how to check if screen is working |
Date: |
Mon, 22 Nov 2010 13:12:24 -0300 |
2010/11/22 jonnexen <address@hidden>:
> 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