Re: how to check if screen is working

2010-11-23 Thread Facundo Andrés Bianco
2010/11/22 jonnexen : > 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

Re: how to check if screen is working

2010-11-23 Thread Christian Ebert
* jonnexen on Monday, November 22, 2010 at 09:24:22 +0100 > 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? In case you mean: is the script runni

Re: how to check if screen is working

2010-11-22 Thread Chris
how bout using output from: screen -ls something like: if [[ `screen -ls|grep -c tached` -gt 0 ]]; then echo "screen is running";else echo "screen is not running";fi On Mon, Nov 22, 2010 at 3:24 AM, jonnexen wrote: > Hello, > > I'm gonna writing a bash install-script. There I want to make a

how to check if screen is working

2010-11-22 Thread jonnexen
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? best regards, jonnexen ___ screen-users mail