-
-
Save stevensona/c4de78b16ad44916075e7948602a2cc6 to your computer and use it in GitHub Desktop.
execute ruby script with cron job (rbenv)
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
SHELL=/bin/bash | |
0 * * * * /bin/bash -c 'export PATH="$HOME/.rbenv/bin:$PATH" ; eval "$(rbenv init -)"; cd $HOME; ./script.sh >> $HOME/jobs.log 2>&1' |
thepoho
commented
Apr 8, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment