Cron craziness
Mar. 8th, 2006 04:32 pmCron is driving me crazy. I've been looking into a problem whereby a whole bunch of my jobs have been failing because they're unable to find python. Fair enough, I thought, maybe I need to set the path explicitly from within the crontab, so I did.
It didn't help, but I have no idea why. Displaying the environment with
One for tomorrow, I think...
Updated: Turns out my problem was wood-for-the-trees related. When, rested and restored, I revisited the problem, I noticed that instead of adding the directory with the
It didn't help, but I have no idea why. Displaying the environment with
printenv shows the path to be correct. Running python -c "import os; print os.environ['PATH']" reports the correct path but running python -c "import os; os.system('python2.4 -V')" fails even though the directory with python2.4 is blantantly in the path.One for tomorrow, I think...
Updated: Turns out my problem was wood-for-the-trees related. When, rested and restored, I revisited the problem, I noticed that instead of adding the directory with the
python2.4 binary in the path, I'd added the binary itself to the path. No wonder everything was hinky.