Skip to content

Instantly share code, notes, and snippets.

@jplindstrom
Created January 15, 2015 09:25
Show Gist options
  • Save jplindstrom/ad7936feb3bf3123f49a to your computer and use it in GitHub Desktop.
Save jplindstrom/ad7936feb3bf3123f49a to your computer and use it in GitHub Desktop.
Start multiple processes in the background and kill them all with C-c
#!/bin/bash
source ~/.bashrc
nvm use
perl -Mlocal::lib=local bin/app.pl worker &
perl -Mlocal::lib=local local/bin/morbo bin/app.pl --listen=http://*:9000 &
ember serve --proxy=http://127.0.0.1:9000 &
trap "kill -TERM -$$" SIGINT
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment