Skip to content

Instantly share code, notes, and snippets.

@ytnobody
Created October 26, 2012 23:38
Show Gist options
  • Save ytnobody/3962229 to your computer and use it in GitHub Desktop.
Save ytnobody/3962229 to your computer and use it in GitHub Desktop.
crontab with env script
MYAPP_HOME=/home/ytnobody/work/myapp
SETLOCK=/usr/local/bin/setlock
LOGGER=/bin/logger
*/5 * * * * $SETLOCK /tmp/myapp.lock $MYAPP_HOME/bin/env $MYAPP/bin/getter | $LOGGER -t MYAPP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment