Created
February 19, 2013 02:25
-
-
Save ilake/4982584 to your computer and use it in GitHub Desktop.
cronjob
This file contains hidden or 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
| PATH=/usr/local/bin:/usr/bin:/bin:$PATH | |
| 20 23 * * * cd /var/www/foo;RAILS_ENV=production bundle exec rake task:jobs auto_update=true >> /var/www/foo/log/foo_info_$(date +\%m\%d\%Y).log | |
| PATH=/usr/local/bin:/usr/bin:/bin:$PATH | |
| 0 0 * * * cd /var/www/foo;RAILS_ENV=production bundle exec rake task:jobs auto_update=true from_date=$(date -dyesterday +\%m/\%d/\%Y) >> /var/www/foo/log/foo_info_$(date -dyesterday +\%m\%d\%Y).log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment