Skip to content

Instantly share code, notes, and snippets.

@gramos
Created April 14, 2015 13:19
Show Gist options
  • Save gramos/0df7b83d096902e14914 to your computer and use it in GitHub Desktop.
Save gramos/0df7b83d096902e14914 to your computer and use it in GitHub Desktop.
#!/bin/bash
source `su - root -c env`
cd /opt/rails && bundle exec rake referrals:expire_and_resolve >> /var/log/cron.log 2>&1
@javierbertoli
Copy link

!/bin/bash

su - root -c env >> /tmp/file
source /tmp/file
cd /opt/rails && bundle exec rake referrals:expire_and_resolve >> /var/log/cron.log 2>&1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment