- rvm list
- find what looks like your gems set, e.g
- ruby-1.9.3-p194
- echo $rvm_path/bin, e.g.
- /usr/lib/rvm/bin
- tack on the output of #1 to the output of #2, e.g.
- /usr/lib/rvm/bin/ruby-1.9.3-p194
- your cron entry should be the result of #3 followed by your ruby script, e.g.
- 0 0 * * * /usr/lib/rvm/bin/ruby-1.9.3-p194 /optt/mydir/myscript.rb
No comments:
Post a Comment
Note: only a member of this blog may post a comment.