Skip to content

Instantly share code, notes, and snippets.

@tjl2
Created August 9, 2010 15:05
Show Gist options
  • Save tjl2/515544 to your computer and use it in GitHub Desktop.
Save tjl2/515544 to your computer and use it in GitHub Desktop.
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