wayneeseguin/rvm — Issue #605: RVM with a gemset does not work from cron?
Author: sekrett
Created: 2011-11-16 12:33:11+00:00
State: open

Hello!

I tested twice before reporting. I have a very simple script:

#!/usr/bin/env ruby

File.open('/pub/home/rails/tmp/ruby-write-test.txt', 'a') do |f|
f.puts "test started at #{Time.now}"
end

My command is:

* * * * * /pub/home/rails/.rvm/bin/ruby-1.9.2-p290@designsubscribe /pub/home/rails/designsubscribe/script/hello

When I copy paste this line into terminal, it works, I can see a new line in my text file, but running from cron nothing happens. I tried to add `| mail -s "cron" me@example.com`, I receive blank emails from cron.

I have the latest rvm 1.9.2.