Advertisement
tom_enos

start_music_and_lights

Nov 14th, 2015
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # Start the music and lights show (killing any existing instances first)
  4. #
  5. # Author: Todd Giles (todd.giles@gmail.com)
  6. # Modifications: Chris Usey (chris.usey@gmail.com), Sean Millar (sean.millar@gmail.com)
  7.  
  8. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  9.  
  10. # Check that the home environment variable is set
  11. if [ -z ${SYNCHRONIZED_LIGHTS_HOME} ]; then
  12.    cat $DIR/env_error_msg
  13.    exit 1
  14. fi
  15.  
  16. $SYNCHRONIZED_LIGHTS_HOME/bin/stop_music_and_lights $$
  17. $SYNCHRONIZED_LIGHTS_HOME/bin/play_sms &
  18. $SYNCHRONIZED_LIGHTS_HOME/bin/check_sms &
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement