0
I'm trying to make RVM and fcron work together. Apparently fcron does not read directly or indirectly any sort of env variables. Which makes RVM futile and scripts fail.
I have this script which works with RVM ruby-1.9.3, rvm-gems etc. Although I tried implementing the following wrapper:
#!/usr/bin/env bash
set -x -v
# load rvm ruby
source /home/user/.rvm/environments/ruby-1.9.3-p0
#ruby /usr/local/bin/morula -s hakmem update
/home/user/.rvm/rubies/ruby-1.9.3-p0/bin/ruby /usr/local/bin/script -s username update
My fcrontab just executes the '/home/user/test.sh' (the above script).
I've tried putting SHELL, GEM_HOME, PATH, LANG and other variables on fcrontab -e but nothing worked so far. Any ideas are welcome.
Best regards
your script looks good, does it fail ? – mpapis – 2012-02-12T07:59:47.697