manage-screen.sh 217 B

1234567
  1. #!/bin/sh
  2. screen -wipe
  3. ## creates a detatched screen with name $1 iff it doesn't already exist
  4. if ! screen -list 2>/dev/null | awk '{print $1}' | grep -q "$1$"; then
  5. screen -dmS $1
  6. echo "Created screen $1"
  7. fi