Skip to content

Instantly share code, notes, and snippets.

@tvorogme
Created April 24, 2018 08:55
Show Gist options
  • Save tvorogme/5b4f9f5e2c487e8dbf9010bc7097694d to your computer and use it in GitHub Desktop.
Save tvorogme/5b4f9f5e2c487e8dbf9010bc7097694d to your computer and use it in GitHub Desktop.
#!/bin/bash
if screen -ls | grep vkusvill_$BRANCH
then
screen -X -S vkusvill_$BRANCH quit
else
echo "Session doesn't exist, going on..."
fi
screen -dmS vkusvill_$BRANCH
screen -S vkusvill_$BRANCH -X -X stuff 'python app.py'`echo -ne '\015'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment