Generally, the $PATH setting inside cron is minimal to say the least. Best practice is to either
1. use full paths to ALL cmds & files used
2. start by setting up the correct PATH value before doing anything.
Ensure you are in the right dir as well; cron does not login in the normal sense
Last edited by chrism01; 11-02-2015 at 03:29 AM.
|