title: Setting env variable to a cron scheduled task using whenever gem
body: <p>In my code below, I wanted to set few environment variables stored in a file. Am I missing something? Printing env in production after 'bundle exec whenever' does not show the environment variables set. Using whenever gem for a scheduled cron task and spent hours figuring this. Any other way can be suggested too.</p>
  
  <pre><code>every 1.day, :at =&gt; '2:30 am' do
    # Run shell script to assign variables and continue the rake task
    system "for line in `cat config/myEnvFile.env` ; do export $line ; done"
    rake "task:continue_doing_my_task"
  end
  </code></pre>