3 ms·
> And no, testing in your shell won't do, since cron runs in a particular environment. Have you tried any of these answers? http://stackoverflow.com/questions
by chrisan 10y ago
> And no, testing in your shell won't do, since cron runs in a particular environment.
Have you tried any of these answers?
http://stackoverflow.com/questions/2135478/how-to-simulate-the-environment-cron-executes-a-script-with http://stackoverflow.com/questions/2135478/how-to-simulate-t...
- cmiles74 10y agoRunning a cron job that writes out it's environment and then running the job I'm testing in that environment has always worked pretty well for me. A hassle, but I've had good luck.
- therein 10y agoI was about to suggest the same. Just have your cronjob dump its environment for you so that you can simulate it more accurately.