check if screen is even code example Example: linux check if screen is running if ! screen -list | grep -q "myscreen"; then # run bash script fi