Skip to content

Instantly share code, notes, and snippets.

@heckj
Created August 10, 2011 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heckj/1137366 to your computer and use it in GitHub Desktop.
Save heckj/1137366 to your computer and use it in GitHub Desktop.
run components for functional tests under screen
# script to background run processes needed to functionally test project
function screen_it {
#newline for screen execution of commands
NL=`echo -ne '\015'`
screen -S project -X screen -t $1
screen -S project -p $1 -X stuff "$2$NL"
}
screen -d -m -S project -t project
screen_it celeryd "project/manage.py celeryd"
screen_it flask "gunicorn -c conf/gunicorn.conf project.service:app"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment