Skip to content

Instantly share code, notes, and snippets.

@heckj heckj/testsetup.sh
Created Aug 10, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.