Skip to content

Instantly share code, notes, and snippets.

@Vaduz
Last active December 29, 2015 03:59
Show Gist options
  • Save Vaduz/7611419 to your computer and use it in GitHub Desktop.
Save Vaduz/7611419 to your computer and use it in GitHub Desktop.
Using rbenv on crontab
# ~/.bashrc
export PATH=$HOME/.rbenv/bin:$PATH
eval "$(rbenv init -)"
# crontab
. $HOME/.bashrc; /path/to/ruby_script.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment