a simple bash wrapper to run any command you want in cron
- Adds basic logging for the cron job - default is '/var/log/shell_wrapper.log'
- Ensures that the command is not run at the same time via lock file - '/tmp/shell_wrapper.lock'
- Ensures that if the command exited in non-zero, it will reset and re-run on the next cron run.
wrapper.sh -c 'COMMAND' << SINGLE QUOTES ARE NECESSARY!!!
I have had to re-write cron wrappers so many freaking times that I am sick of it. This tool is to be the end all to a cron wrapper.
TDD is not done at this time. Need to find a framework that works well with bash