I have a shell script, thus:
export PYTHONPATH=/usr/local/lib/python
cd /home/skip/workspace/UAM
for file in *.txt
do
echo $file >>log.fil
/usr/bin/python push.py -s $file
done
return 0
It runs properly from command line. prints each filename to the log file and runs the python push.py command as expected. (It creates a directory and populates it.)
But when I try to run it from cron with this crontab:
3 * * * * /home/skip/workspace/UAM/RunAllTest.sh
I am seeing entries in the log file, but push.py is not run properly. (the directory is not created or populated.)
Any assistance would be welcome.