Jinglebots cronjob
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
# this line kills the existing speak.rb if one is running | |
for X in `ps aux | grep speak.rb $1 | awk {'print $2'}`; do kill $X; done | |
# need to cd to the proper directory for relative path reasons in the ruby code | |
cd ~/Desktop/jinglebots/robot | |
ruby speak.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assign needed environment variables here | |
# REDIS_URI=redis://the_really_long_redis_uri@redistogo.com:/1234/ | |
*/30 * * * * ~/Desktop/cronjobs/bash_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment