Created
August 9, 2010 15:05
-
-
Save tjl2/515544 to your computer and use it in GitHub Desktop.
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
In the context of this cronjob: | |
/usr/bin/lockrun --lockfile=/path/to/lockrun.collections.batch.execute -- sh -c "NEWRELIC_ENABLE=true $RAKE_SILENT collections:batch:execute --trace" | |
Does this look right (whole thing outputs to /dev/null, but rake task directs to mail command): | |
/usr/bin/lockrun --lockfile=/path/to/lockrun.collections.batch.execute -- sh -c "NEWRELIC_ENABLE=true $RAKE_SILENT collections:batch:execute --trace 2>&1 | mail -s "Output from collections_batch_execute" [email protected]" >> /dev/null 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment