Created
          October 26, 2012 23:38 
        
      - 
      
- 
        Save ytnobody/3962229 to your computer and use it in GitHub Desktop. 
    crontab with env script
  
        
  
    
      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
    
  
  
    
  | 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