Skip to content

Instantly share code, notes, and snippets.

@ewheeler
Created December 15, 2009 12:20
Show Gist options
  • Save ewheeler/256895 to your computer and use it in GitHub Desktop.
Save ewheeler/256895 to your computer and use it in GitHub Desktop.
# load default settings
source "$HOME/.screenrc"
# start all new windows in the project root
chdir "$HOME/rapidsms/core/"
# start rapidsms (note that we're not just invoking
# it with the new window, because that causes the
# window to CLOSE if/when the program terminates)
screen -t rapidsms
stuff "./rapidsms route\015"
# start django after a short delay
screen -t django
stuff "sleep 2\015"
stuff "sudo ./rapidsms runserver 0.0.0.0:80\015"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment