Created
April 14, 2015 13:19
-
-
Save gramos/0df7b83d096902e14914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source `su - root -c env` | |
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
!/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